#14524 Histogram: Hide filter info with curve collection

This commit is contained in:
Kristian Bendiksen
2026-08-19 12:23:07 +02:00
parent 488d631d81
commit a7bd331bb3
2 changed files with 9 additions and 5 deletions
@@ -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;
}
}
}