Grid Cross Plot: Fix sub items on/off behavior.

This commit is contained in:
Kristian Bendiksen 2023-06-28 13:59:01 +02:00
parent b5d6421f22
commit c7032c60d2
2 changed files with 12 additions and 0 deletions

View File

@ -1615,6 +1615,17 @@ void RimGridCrossPlotDataSet::curveAppearanceChanged( const caf::SignalEmitter*
triggerPlotNameUpdateAndReplot();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimGridCrossPlotDataSet::onChildrenUpdated( caf::PdmChildArrayFieldHandle* childArray, std::vector<caf::PdmObjectHandle*>& updatedObjects )
{
if ( childArray == &m_crossPlotRegressionCurves )
{
triggerPlotNameUpdateAndReplot();
}
}
CAF_PDM_SOURCE_INIT( RimGridCrossPlotDataSetNameConfig, "RimGridCrossPlotCurveSetNameConfig" );
//--------------------------------------------------------------------------------------------------

View File

@ -161,6 +161,7 @@ protected:
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
void childFieldChangedByUi( const caf::PdmFieldHandle* changedChildField ) override;
void onChildrenUpdated( caf::PdmChildArrayFieldHandle* childArray, std::vector<caf::PdmObjectHandle*>& updatedObjects ) override;
QList<caf::PdmOptionItemInfo> calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions ) override;
void triggerPlotNameUpdateAndReplot();