mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Split summary plot into multiple plots (#8910)
* Support splitting a summary plot with multiple curves into a new multiplot with one plot per curve * Make sure the correct plot is deleted if using the plot context menu.
This commit is contained in:
@@ -193,7 +193,14 @@ void RiuSummaryPlot::showContextMenu( QPoint pos )
|
||||
}
|
||||
|
||||
menuBuilder.addSeparator();
|
||||
menuBuilder << "RicDeleteSubPlotFeature";
|
||||
|
||||
RimSummaryPlot* plot = dynamic_cast<RimSummaryPlot*>( plotWidget()->plotDefinition() );
|
||||
if ( plot )
|
||||
{
|
||||
QVariant plotVariant( QVariant::fromValue( static_cast<void*>( plot ) ) );
|
||||
menuBuilder.addCmdFeatureWithUserData( "RicSplitMultiPlotFeature", "Split into Multiple Plots", plotVariant );
|
||||
menuBuilder.addCmdFeatureWithUserData( "RicDeleteSubPlotFeature", "Delete Plot", plotVariant );
|
||||
}
|
||||
|
||||
menuBuilder.appendToMenu( &menu );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user