mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Implement creation of combination plots from selected plots
This commit is contained in:
@@ -193,10 +193,16 @@ void RiuGridPlotWindow::removePlot( RiuQwtPlotWidget* plotWidget )
|
||||
plotWidget->setParent( nullptr );
|
||||
|
||||
RiuQwtPlotLegend* legend = m_legends[plotWidgetIdx];
|
||||
legend->setParent( nullptr );
|
||||
m_legends.removeAt( plotWidgetIdx );
|
||||
m_legendColumns.removeAt( plotWidgetIdx );
|
||||
delete legend;
|
||||
|
||||
QLabel* subTitle = m_subTitles[plotWidgetIdx];
|
||||
subTitle->setParent( nullptr );
|
||||
m_subTitles.removeAt( plotWidgetIdx );
|
||||
delete subTitle;
|
||||
|
||||
scheduleUpdate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user