@@ -427,15 +427,15 @@ void QgsGradientColorRampDialog::plotMouseMove( QPointF point )
427427 QColor newColor = mStopEditor ->selectedStop ().color ;
428428
429429 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 () );
431431 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 () );
433433 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 () );
435435 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 ) ) );
437437
438- mStopEditor ->setSelectedStopDetails ( newColor, qBound ( 0.0 , point.x (), 1.0 ) );
438+ mStopEditor ->setSelectedStopDetails ( newColor, qBound ( qreal ( 0.0 ) , point.x (), qreal ( 1.0 ) ) );
439439}
440440
441441bool byX ( QPointF p1, QPointF p2 )
0 commit comments