//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void PdmUiFieldHandle::notifyFieldChanged(const QVariant& oldFieldValue, const QVariant& newFieldValue) { if (oldFieldValue != newFieldValue) { PdmFieldHandle* fieldHandle = this->fieldHandle(); assert(fieldHandle && fieldHandle->ownerObject()); PdmUiObjectHandle* uiObjHandle = uiObj(fieldHandle->ownerObject()); if (uiObjHandle) { uiObjHandle->fieldChangedByUi(fieldHandle, oldFieldValue, newFieldValue); uiObjHandle->updateConnectedEditors(); } // Update field editors this->updateConnectedEditors(); } }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void PdmUiFieldHandle::notifyFieldChanged(const QVariant& oldFieldValue, const QVariant& newFieldValue) { if (oldFieldValue != newFieldValue) { PdmFieldHandle* fieldHandle = this->fieldHandle(); CAF_ASSERT(fieldHandle && fieldHandle->ownerObject()); PdmUiObjectHandle* uiObjHandle = uiObj(fieldHandle->ownerObject()); if (uiObjHandle) { uiObjHandle->fieldChangedByUi(fieldHandle, oldFieldValue, newFieldValue); uiObjHandle->updateConnectedEditors(); } // Update field editors this->updateConnectedEditors(); PdmUiModelChangeDetector::instance()->setModelChanged(); } }