mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Highlight the curve belonging to the legend you click on. (#9259)
* Highlight the curve belonging to the legend you click on. * Make sure legend curve order remains the same when changing hilited curve
This commit is contained in:
@@ -502,9 +502,7 @@ void RimSummaryCurveCollection::defineEditorAttribute( const caf::PdmFieldHandle
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryCurveCollection::onCurvesReordered( const SignalEmitter* emitter )
|
||||
{
|
||||
// detach and reattach to make sure curve legends are shown in correct order
|
||||
detachPlotCurves();
|
||||
reattachPlotCurves();
|
||||
refreshCurveOrdering();
|
||||
curvesChanged.send();
|
||||
}
|
||||
|
||||
@@ -543,3 +541,12 @@ void RimSummaryCurveCollection::defineObjectEditorAttribute( QString uiConfigNam
|
||||
myAttr->currentObject = m_currentSummaryCurve.p();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryCurveCollection::refreshCurveOrdering()
|
||||
{
|
||||
detachPlotCurves();
|
||||
reattachPlotCurves();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user