mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
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:
committed by
GitHub
parent
d9bb82de91
commit
258fbddc10
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user