diff --git a/ApplicationCode/ProjectDataModel/RimIntersectionResultDefinition.cpp b/ApplicationCode/ProjectDataModel/RimIntersectionResultDefinition.cpp index 916c8a785b..f09032546e 100644 --- a/ApplicationCode/ProjectDataModel/RimIntersectionResultDefinition.cpp +++ b/ApplicationCode/ProjectDataModel/RimIntersectionResultDefinition.cpp @@ -42,7 +42,7 @@ CAF_PDM_SOURCE_INIT( RimIntersectionResultDefinition, "IntersectionResultDefinit //-------------------------------------------------------------------------------------------------- RimIntersectionResultDefinition::RimIntersectionResultDefinition() { - CAF_PDM_InitObject( "Intersection Result Definition", "", "", "" ); + CAF_PDM_InitObject( "Intersection Result Definition", ":/CellResult.png", "", "" ); CAF_PDM_InitField( &m_isActive, "IsActive", true, "Active", "", "", "" ); m_isActive.uiCapability()->setUiHidden( true ); @@ -340,6 +340,8 @@ void RimIntersectionResultDefinition::fieldChangedByUi( const caf::PdmFieldHandl update2dIntersectionViews(); } + + this->updateUiIconFromToggleField(); } //-------------------------------------------------------------------------------------------------- @@ -447,6 +449,8 @@ void RimIntersectionResultDefinition::initAfterRead() { m_geomResultDefinition->setGeoMechCase( geomCase ); } + + this->updateUiIconFromToggleField(); } //-------------------------------------------------------------------------------------------------- diff --git a/ApplicationCode/ProjectDataModel/RimRegularLegendConfig.cpp b/ApplicationCode/ProjectDataModel/RimRegularLegendConfig.cpp index 0eb64d4384..3e43881375 100644 --- a/ApplicationCode/ProjectDataModel/RimRegularLegendConfig.cpp +++ b/ApplicationCode/ProjectDataModel/RimRegularLegendConfig.cpp @@ -304,6 +304,8 @@ void RimRegularLegendConfig::fieldChangedByUi( const caf::PdmFieldHandle* change { rftPlot->onLegendDefinitionChanged(); } + + this->updateUiIconFromToggleField(); } //-------------------------------------------------------------------------------------------------- @@ -540,8 +542,13 @@ void RimRegularLegendConfig::setAutomaticRanges( double globalMin, double global void RimRegularLegendConfig::initAfterRead() { updateFieldVisibility(); + + this->updateUiIconFromToggleField(); } +//-------------------------------------------------------------------------------------------------- +/// +//-------------------------------------------------------------------------------------------------- caf::PdmFieldHandle* RimRegularLegendConfig::objectToggleField() { return &m_showLegend;