@@ -427,15 +427,15 @@ void QgsGradientColorRampDialog::plotMouseMove( QPointF point )
427
427
QColor newColor = mStopEditor ->selectedStop ().color ;
428
428
429
429
if ( mCurrentPlotColorComponent == 0 )
430
- newColor = QColor::fromHslF ( qBound ( 0.0 , point.y (), 1.0 ), newColor.hslSaturationF (), newColor.lightnessF (), newColor.alphaF () );
430
+ newColor = QColor::fromHslF ( qBound ( qreal ( 0.0 ) , point.y (), qreal ( 1.0 ) ), newColor.hslSaturationF (), newColor.lightnessF (), newColor.alphaF () );
431
431
else if ( mCurrentPlotColorComponent == 1 )
432
- newColor = QColor::fromHslF ( newColor.hslHueF (), newColor.hslSaturationF (), qBound ( 0.0 , point.y (), 1.0 ), newColor.alphaF () );
432
+ newColor = QColor::fromHslF ( newColor.hslHueF (), newColor.hslSaturationF (), qBound ( qreal ( 0.0 ) , point.y (), qreal ( 1.0 ) ), newColor.alphaF () );
433
433
else if ( mCurrentPlotColorComponent == 2 )
434
- newColor = QColor::fromHslF ( newColor.hslHueF (), qBound ( 0.0 , point.y (), 1.0 ), newColor.lightnessF (), newColor.alphaF () );
434
+ newColor = QColor::fromHslF ( newColor.hslHueF (), qBound ( qreal ( 0.0 ) , point.y (), qreal ( 1.0 ) ), newColor.lightnessF (), newColor.alphaF () );
435
435
else if ( mCurrentPlotColorComponent == 3 )
436
- newColor = QColor::fromHslF ( newColor.hslHueF (), newColor.hslSaturationF (), newColor.lightnessF (), qBound ( 0.0 , point.y (), 1.0 ) );
436
+ newColor = QColor::fromHslF ( newColor.hslHueF (), newColor.hslSaturationF (), newColor.lightnessF (), qBound ( qreal ( 0.0 ) , point.y (), qreal ( 1.0 ) ) );
437
437
438
- mStopEditor ->setSelectedStopDetails ( newColor, qBound ( 0.0 , point.x (), 1.0 ) );
438
+ mStopEditor ->setSelectedStopDetails ( newColor, qBound ( qreal ( 0.0 ) , point.x (), qreal ( 1.0 ) ) );
439
439
}
440
440
441
441
bool byX ( QPointF p1, QPointF p2 )
0 commit comments