mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Regression Test : Make it possible to override plot engine
Add GUI to override plot engine to either Qwt or QtCharts in regression test dialog
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "RiaDefines.h"
|
||||
#include "RiaFieldHandleTools.h"
|
||||
#include "RiaPlotDefines.h"
|
||||
#include "RiaRegressionTestRunner.h"
|
||||
#include "RiaSummaryAddressAnalyzer.h"
|
||||
#include "RiaSummaryCurveDefinition.h"
|
||||
#include "RiaSummaryTools.h"
|
||||
@@ -2017,7 +2018,18 @@ RiuPlotWidget* RimSummaryPlot::doCreatePlotViewWidget( QWidget* mainWindowParent
|
||||
if ( !plotWidget() )
|
||||
{
|
||||
#ifdef USE_QTCHARTS
|
||||
if ( m_useQtChartsPlot )
|
||||
bool useQtCharts = m_useQtChartsPlot;
|
||||
|
||||
auto regTestRunner = RiaRegressionTestRunner::instance();
|
||||
if ( regTestRunner->isRunningRegressionTests() )
|
||||
{
|
||||
if ( regTestRunner->overridePlotEngine() == RiaRegressionTest::PlotEngine::USE_QWT )
|
||||
useQtCharts = false;
|
||||
else if ( regTestRunner->overridePlotEngine() == RiaRegressionTest::PlotEngine::USER_QTCHARTS )
|
||||
useQtCharts = true;
|
||||
}
|
||||
|
||||
if ( useQtCharts )
|
||||
{
|
||||
m_summaryPlot = std::make_unique<RiuSummaryQtChartsPlot>( this, mainWindowParent );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user