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/gui/painting/qpainter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/painting/qpainter.cpp') diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp index 8d16b44944..077e28b3e0 100644 --- a/src/gui/painting/qpainter.cpp +++ b/src/gui/painting/qpainter.cpp @@ -197,9 +197,9 @@ void QPainterPrivate::checkEmulation() if (state->brush.style() == Qt::TexturePattern) { if (qHasPixmapTexture(state->brush)) - doEmulation |= !qFuzzyCompare(state->brush.texture().devicePixelRatioF(), 1.0); + doEmulation |= !qFuzzyCompare(state->brush.texture().devicePixelRatioF(), qreal(1.0)); else - doEmulation |= !qFuzzyCompare(state->brush.textureImage().devicePixelRatioF(), 1.0); + doEmulation |= !qFuzzyCompare(state->brush.textureImage().devicePixelRatioF(), qreal(1.0)); } if (doEmulation && extended->flags() & QPaintEngineEx::DoNotEmulate) -- cgit v1.2.3