diff --git a/private/tooltip.cpp b/private/tooltip.cpp index 81a767e07..acaa4a696 100644 --- a/private/tooltip.cpp +++ b/private/tooltip.cpp @@ -284,7 +284,7 @@ void ToolTip::animateMove(qreal progress) d->from = pos(); } - if (qFuzzyCompare(progress, 1.0)) { + if (qFuzzyCompare(progress, qreal(1.0))) { move(d->to); return; } diff --git a/widgets/meter.cpp b/widgets/meter.cpp index 1430f1f66..7b122a97c 100644 --- a/widgets/meter.cpp +++ b/widgets/meter.cpp @@ -52,7 +52,7 @@ public: void progressChanged(qreal progress) { - bool over = qFuzzyCompare(progress, 1.0); + bool over = qFuzzyCompare(progress, qreal(1.0)); if (value == targetValue) { if (!over && movementId) {