diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-11-23 12:36:42 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-11-26 14:03:35 +0000 |
commit | 8317e62c3e2381e6287c9a7e861d20f78aaea03f (patch) | |
tree | 4e07c885882183197987955f94dfe61973527588 /src/imports/controls/fusion | |
parent | 33966b5b9b026f24ac94c0905280deb4d004df81 (diff) |
Fix compilation with qreal=float
Introduce casts where required.
Fixes: QTBUG-71952
Change-Id: I63a99d6918bc00367439e967e3c45a733b41c482
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/fusion')
-rw-r--r-- | src/imports/controls/fusion/qquickfusionbusyindicator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/controls/fusion/qquickfusionbusyindicator.cpp b/src/imports/controls/fusion/qquickfusionbusyindicator.cpp index 81618191..a9b75d27 100644 --- a/src/imports/controls/fusion/qquickfusionbusyindicator.cpp +++ b/src/imports/controls/fusion/qquickfusionbusyindicator.cpp @@ -82,7 +82,7 @@ void QQuickFusionBusyIndicator::paint(QPainter *painter) const qreal sz = qMin(w, h); const qreal dx = (w - sz) / 2; const qreal dy = (h - sz) / 2; - const int hpw = qRound(qMax(1.0, sz / 14)) & -1; + const int hpw = qRound(qMax(qreal(1), sz / 14)) & -1; const int pw = 2 * hpw; const QRectF bounds(dx + hpw, dy + hpw, sz - pw - 1, sz - pw - 1); |