mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-26 21:27:15 -05:00
#14524 Histogram: Hide filter info with curve collection
This commit is contained in:
@@ -68,6 +68,7 @@ void RimHistogramCurveCollection::loadDataAndUpdate( bool updateParentPlot )
|
||||
{
|
||||
auto parentPlot = firstAncestorOrThisOfTypeAsserted<RimHistogramPlot>();
|
||||
parentPlot->updateAll();
|
||||
parentPlot->updatePlotInfoLabel();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -380,13 +380,16 @@ void RimHistogramPlot::showPlotInfoLabel( bool show )
|
||||
void RimHistogramPlot::updatePlotInfoLabel()
|
||||
{
|
||||
QStringList descriptions;
|
||||
for ( RimHistogramCurve* curve : histogramCurves() )
|
||||
if ( m_histogramCurveCollection->isCurvesVisible() )
|
||||
{
|
||||
if ( !curve->isChecked() || !curve->dataSource() ) continue;
|
||||
|
||||
for ( const QString& description : curve->dataSource()->filterDescriptions() )
|
||||
for ( RimHistogramCurve* curve : histogramCurves() )
|
||||
{
|
||||
if ( !descriptions.contains( description ) ) descriptions += description;
|
||||
if ( !curve->isChecked() || !curve->dataSource() ) continue;
|
||||
|
||||
for ( const QString& description : curve->dataSource()->filterDescriptions() )
|
||||
{
|
||||
if ( !descriptions.contains( description ) ) descriptions += description;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user