@@ -414,15 +414,15 @@ void QgsVectorGradientColorRampV2Dialog::plotMouseMove( QPointF point )
414
414
QColor newColor = mStopEditor ->selectedStop ().color ;
415
415
416
416
if ( mCurrentPlotColorComponent == 0 )
417
- newColor = QColor::fromHslF ( qBound ( 0.0 , point.y (), 1.0 ), newColor.hslSaturationF (), newColor.lightnessF (), newColor.alphaF () );
417
+ newColor = QColor::fromHslF ( qBound ( qreal ( 0.0 ) , point.y (), qreal ( 1.0 ) ), newColor.hslSaturationF (), newColor.lightnessF (), newColor.alphaF () );
418
418
else if ( mCurrentPlotColorComponent == 1 )
419
- newColor = QColor::fromHslF ( newColor.hslHueF (), newColor.hslSaturationF (), qBound ( 0.0 , point.y (), 1.0 ), newColor.alphaF () );
419
+ newColor = QColor::fromHslF ( newColor.hslHueF (), newColor.hslSaturationF (), qBound ( qreal ( 0.0 ) , point.y (), qreal ( 1.0 ) ), newColor.alphaF () );
420
420
else if ( mCurrentPlotColorComponent == 2 )
421
- newColor = QColor::fromHslF ( newColor.hslHueF (), qBound ( 0.0 , point.y (), 1.0 ), newColor.lightnessF (), newColor.alphaF () );
421
+ newColor = QColor::fromHslF ( newColor.hslHueF (), qBound ( qreal ( 0.0 ) , point.y (), qreal ( 1.0 ) ), newColor.lightnessF (), newColor.alphaF () );
422
422
else if ( mCurrentPlotColorComponent == 3 )
423
- newColor = QColor::fromHslF ( newColor.hslHueF (), newColor.hslSaturationF (), newColor.lightnessF (), qBound ( 0.0 , point.y (), 1.0 ) );
423
+ newColor = QColor::fromHslF ( newColor.hslHueF (), newColor.hslSaturationF (), newColor.lightnessF (), qBound ( qreal ( 0.0 ) , point.y (), qreal ( 1.0 ) ) );
424
424
425
- mStopEditor ->setSelectedStopDetails ( newColor, qBound ( 0.0 , point.x (), 1.0 ) );
425
+ mStopEditor ->setSelectedStopDetails ( newColor, qBound ( qreal ( 0.0 ) , point.x (), qreal ( 1.0 ) ) );
426
426
}
427
427
428
428
bool byX ( QPointF p1, QPointF p2 )
0 commit comments