equal
deleted
inserted
replaced
753 if \a enabled is false, the user cannot interact with the item. |
753 if \a enabled is false, the user cannot interact with the item. |
754 */ |
754 */ |
755 void HbDataFormModelItem::setEnabled(bool enabled) |
755 void HbDataFormModelItem::setEnabled(bool enabled) |
756 { |
756 { |
757 Q_D(HbDataFormModelItem); |
757 Q_D(HbDataFormModelItem); |
|
758 d->mDirtyProperty = "enabled"; |
758 |
759 |
759 if (enabled != (bool)(d->mFlags & Qt::ItemIsEnabled)) { |
760 if (enabled != (bool)(d->mFlags & Qt::ItemIsEnabled)) { |
760 if (enabled) { |
761 if (enabled) { |
761 d->mFlags |= Qt::ItemIsEnabled; |
762 d->mFlags |= Qt::ItemIsEnabled; |
762 } else { |
763 } else { |