Fix update of plot titles

This commit is contained in:
Gaute Lindkvist 2020-06-08 10:49:45 +02:00
parent b28d35db14
commit 46194f90a7
3 changed files with 19 additions and 0 deletions

View File

@ -403,4 +403,8 @@ void RimCorrelationReportPlot::onDataSelection( const EnsembleParameter& param,
m_parameterResultCrossPlot->setCurveDefinitions( {curveDef} );
m_parameterResultCrossPlot->setEnsembleParameter( param.name );
m_parameterResultCrossPlot->loadDataAndUpdate();
if ( m_viewer )
{
m_viewer->updateSubTitles();
}
}

View File

@ -342,6 +342,20 @@ void RiuMultiPlotPage::scheduleReplotOfAllPlots()
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RiuMultiPlotPage::updateSubTitles()
{
for ( int i = 0; i < m_plotWidgets.size(); ++i )
{
if ( m_plotWidgets[i]->isChecked() )
{
m_subTitles[i]->setText( m_plotWidgets[i]->plotTitle() );
}
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -90,6 +90,7 @@ public:
void scheduleUpdate();
void scheduleReplotOfAllPlots();
virtual void updateVerticalScrollBar( double visibleMin, double visibleMax, double totalMin, double totalMax ) {}
void updateSubTitles();
virtual void renderTo( QPaintDevice* paintDevice );
void renderTo( QPainter* painter, double scalingFactor );