mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Major modularization adjustments
Use uiField() when issuing setUi....() commands Use PdmChildArrayField instead of PdmPointersFielc Use PdmChildField instead of PdmField to pdm pointer objects Use PdmChildArrayField instead of PdmField< std::list< caf::PdmPointer< type > > > Use PdmObjectHandle instead of PdmObject Replaced parentFields(std::vector) with parentField() Use PdmUiPropertyViewDialog instead of PdmUiPropertyDialog
This commit is contained in:
@@ -39,7 +39,7 @@ RimMockModelSettings::RimMockModelSettings()
|
||||
CAF_PDM_InitField(&cellCountZ, "CellCountZ", quint64(10), "Cell Count Z", "", "", "");
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&totalCellCount, "TotalCellCount", "Total Cell Count", "", "", "");
|
||||
totalCellCount.setUiReadOnly(true);
|
||||
totalCellCount.capability<caf::PdmUiFieldHandle>()->setUiReadOnly(true);
|
||||
|
||||
CAF_PDM_InitField(&resultCount, "ResultCount", quint64(3), "Result Count", "", "", "");
|
||||
CAF_PDM_InitField(&timeStepCount, "TimeStepCount", quint64(10), "Time Step Count", "", "", "");
|
||||
@@ -58,7 +58,12 @@ RimMockModelSettings::~RimMockModelSettings()
|
||||
void RimMockModelSettings::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue)
|
||||
{
|
||||
totalCellCount = cellCountX * cellCountY * cellCountZ;
|
||||
totalCellCount.updateConnectedEditors();
|
||||
|
||||
caf::PdmUiFieldHandle* uiFieldHandle = uiField(&totalCellCount);
|
||||
if (uiFieldHandle)
|
||||
{
|
||||
uiFieldHandle->updateConnectedEditors();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user