Stop using gradient for AccumulatedPhaseFractionsPlot

This commit is contained in:
Gaute Lindkvist 2019-10-18 15:50:16 +02:00
parent d39e31b982
commit af72538516

View File

@ -282,15 +282,4 @@ void RiuTofAccumulatedPhaseFractionsPlot::setCommonPlotBehaviour( QwtPlot* plot
void RiuTofAccumulatedPhaseFractionsPlot::setCurveColor( QwtPlotCurve* curve, QColor color )
{
curve->setBrush( QBrush( color ) );
QLinearGradient gradient;
gradient.setCoordinateMode( QGradient::StretchToDeviceMode );
gradient.setColorAt( 0, color.darker( 110 ) );
gradient.setColorAt( 0.15, color );
gradient.setColorAt( 0.25, color );
gradient.setColorAt( 0.4, color.darker( 110 ) );
gradient.setColorAt( 0.6, color );
gradient.setColorAt( 0.8, color.darker( 110 ) );
gradient.setColorAt( 1, color );
curve->setBrush( gradient );
}