mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Regression test fixes (#9068)
* Make sure font size is updated correctly * Hide empty sub titles * Do not categorize as water cut if no curves are visible * Propagate settings from single summary plot to summary multi plot
This commit is contained in:
@@ -468,6 +468,44 @@ RimSummaryMultiPlot*
|
||||
return summaryMultiPlot;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimSummaryMultiPlot* RicSummaryPlotBuilder::createAndAppendSingleSummaryMultiPlotNoAutoSettings( RimSummaryPlot* plot )
|
||||
{
|
||||
RimProject* project = RimProject::current();
|
||||
auto* plotCollection = project->mainPlotCollection()->summaryMultiPlotCollection();
|
||||
|
||||
auto* summaryMultiPlot = new RimSummaryMultiPlot();
|
||||
summaryMultiPlot->setColumnCount( RiaDefines::ColumnCount::COLUMNS_1 );
|
||||
summaryMultiPlot->setRowCount( RiaDefines::RowCount::ROWS_1 );
|
||||
summaryMultiPlot->setAsPlotMdiWindow();
|
||||
|
||||
if ( !plot->autoPlotTitle() )
|
||||
{
|
||||
// Move settings from the single summary plot to the multi plot, and disable auto titles
|
||||
summaryMultiPlot->setAutoPlotTitle( false );
|
||||
summaryMultiPlot->setAutoSubPlotTitle( false );
|
||||
summaryMultiPlot->setMultiPlotTitleVisible( true );
|
||||
summaryMultiPlot->setMultiPlotTitle( plot->description() );
|
||||
|
||||
plot->setPlotTitleVisible( false );
|
||||
plot->setDescription( "" );
|
||||
}
|
||||
|
||||
plotCollection->addSummaryMultiPlot( summaryMultiPlot );
|
||||
|
||||
appendPlotsToSummaryMultiPlot( summaryMultiPlot, { plot } );
|
||||
|
||||
plotCollection->updateAllRequiredEditors();
|
||||
summaryMultiPlot->loadDataAndUpdate();
|
||||
summaryMultiPlot->updateAllRequiredEditors();
|
||||
|
||||
RiuPlotMainWindowTools::selectAsCurrentItem( plot );
|
||||
|
||||
return summaryMultiPlot;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -79,6 +79,7 @@ public:
|
||||
createAndAppendDefaultSummaryMultiPlot( const std::vector<RimSummaryCase*>& cases,
|
||||
const std::vector<RimSummaryCaseCollection*>& ensembles );
|
||||
|
||||
static RimSummaryMultiPlot* createAndAppendSingleSummaryMultiPlotNoAutoSettings( RimSummaryPlot* plot );
|
||||
static RimSummaryMultiPlot* createAndAppendSingleSummaryMultiPlot( RimSummaryPlot* plot );
|
||||
static RimSummaryMultiPlot* createAndAppendSummaryMultiPlot( const std::vector<RimSummaryPlot*>& plots );
|
||||
static RimSummaryMultiPlot* createAndAppendSummaryMultiPlot( const std::vector<caf::PdmObjectHandle*>& objects );
|
||||
|
||||
Reference in New Issue
Block a user