Merge pull request #8387 from OPM/qtcharts-summary-plots

Closes #8228 

Major refactoring of summary plotting. Now possible to create plots both with Qwt and QtChart as plotting tool.
This commit is contained in:
Kristian Bendiksen
2022-01-17 13:14:21 +01:00
committed by GitHub
parent d9bb82de91
commit 258fbddc10
145 changed files with 7245 additions and 2932 deletions

View File

@@ -75,3 +75,22 @@ int RiuQwtPlotCurveDefines::zDepthForIndex( ZIndex index )
return 0;
}
Qt::PenStyle RiuQwtPlotCurveDefines::convertToPenStyle( RiuQwtPlotCurveDefines::LineStyleEnum lineStyle )
{
switch ( lineStyle )
{
case RiuQwtPlotCurveDefines::LineStyleEnum::STYLE_NONE:
return Qt::NoPen;
case RiuQwtPlotCurveDefines::LineStyleEnum::STYLE_SOLID:
return Qt::SolidLine;
case RiuQwtPlotCurveDefines::LineStyleEnum::STYLE_DASH:
return Qt::DashLine;
case RiuQwtPlotCurveDefines::LineStyleEnum::STYLE_DOT:
return Qt::DotLine;
case RiuQwtPlotCurveDefines::LineStyleEnum::STYLE_DASH_DOT:
return Qt::DashDotLine;
default:
return Qt::NoPen;
}
}