mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3338 Keep order of summary plot curves if you uncheck and check back curves.
This commit is contained in:
@@ -479,6 +479,15 @@ void RimSummaryPlot::updateAll()
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryPlot::updateAllLegendItems()
|
||||
{
|
||||
reattachAllCurves();
|
||||
qwtPlot()->updateLegend();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -1573,6 +1582,29 @@ void RimSummaryPlot::detachAllCurves()
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryPlot::reattachAllCurves()
|
||||
{
|
||||
if (m_summaryCurveCollection)
|
||||
{
|
||||
m_summaryCurveCollection->reattachQwtCurves();
|
||||
}
|
||||
|
||||
m_ensembleCurveSetCollection->reattachQwtCurves();
|
||||
|
||||
for (RimGridTimeHistoryCurve* curve : m_gridTimeHistoryCurves)
|
||||
{
|
||||
curve->reattachQwtCurve();
|
||||
}
|
||||
|
||||
for (RimAsciiDataCurve* curve : m_asciiDataCurves)
|
||||
{
|
||||
curve->reattachQwtCurve();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user