From 4886514fc3345422b74f78171862247fc73e2c0d Mon Sep 17 00:00:00 2001 From: Michal Klocek Date: Mon, 27 Jul 2020 12:23:19 +0200 Subject: Fix compiler issues when qreal is float MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ide3b5a3b0f2d93708409edac8aa999eb25c3ab54 Reviewed-by: Tor Arne Vestbø --- src/widgets/styles/qwindowsstyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widgets') diff --git a/src/widgets/styles/qwindowsstyle.cpp b/src/widgets/styles/qwindowsstyle.cpp index c402446df1..763431ecfe 100644 --- a/src/widgets/styles/qwindowsstyle.cpp +++ b/src/widgets/styles/qwindowsstyle.cpp @@ -856,7 +856,7 @@ void QWindowsStyle::drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPointF points[6]; qreal scaleh = opt->rect.width() / 12.0; qreal scalev = opt->rect.height() / 12.0; - points[0] = { opt->rect.x() + 3.5 * scaleh, opt->rect.y() + 5.5 * scalev }; + points[0] = { opt->rect.x() + qreal(3.5) * scaleh, opt->rect.y() + qreal(5.5) * scalev }; points[1] = { points[0].x(), points[0].y() + 2 * scalev }; points[2] = { points[1].x() + 2 * scaleh, points[1].y() + 2 * scalev }; points[3] = { points[2].x() + 4 * scaleh, points[2].y() - 4 * scalev }; -- cgit v1.2.3