mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix update of plot titles
This commit is contained in:
parent
b28d35db14
commit
46194f90a7
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user