mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Better fix for legend and title in sub plots and summary dialog
This commit is contained in:
committed by
Magne Sjaastad
parent
377274cdec
commit
9391453c2c
@@ -191,11 +191,9 @@ void RiuMultiPlotBook::removePlot( RiuQwtPlotWidget* plotWidget )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuMultiPlotBook::removeAllPlots()
|
||||
{
|
||||
auto plotWidgets = m_plotWidgets;
|
||||
for ( RiuQwtPlotWidget* plotWidget : plotWidgets )
|
||||
{
|
||||
removePlot( plotWidget );
|
||||
}
|
||||
deleteAllPages();
|
||||
m_plotWidgets.clear();
|
||||
scheduleUpdate();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -483,6 +481,7 @@ QList<QPointer<RiuQwtPlotWidget>> RiuMultiPlotBook::visiblePlotWidgets() const
|
||||
QList<QPointer<RiuQwtPlotWidget>> plotWidgets;
|
||||
for ( QPointer<RiuQwtPlotWidget> plotWidget : m_plotWidgets )
|
||||
{
|
||||
CAF_ASSERT( plotWidget );
|
||||
if ( plotWidget->isChecked() )
|
||||
{
|
||||
plotWidgets.push_back( plotWidget );
|
||||
@@ -534,6 +533,7 @@ void RiuMultiPlotBook::createPages()
|
||||
row = 0;
|
||||
column = 0;
|
||||
}
|
||||
CAF_ASSERT( plotWidgets[visibleIndex] );
|
||||
page->addPlot( plotWidgets[visibleIndex] );
|
||||
page->performUpdate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user