From 9c09d822514c6f1d7008c6c7457649d3532722f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20Johan=20S=C3=B8rvig?= Date: Tue, 1 Sep 2020 12:55:01 +0200 Subject: [PATCH] Limit workaround to 5.14.0 QTBUG-80934 was fixed in Qt 5.14.1. Change-Id: I3f9f2a629bce40b13ad8836ae4b0f4a710241d49 Reviewed-by: Eike Ziller --- src/app/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/main.cpp b/src/app/main.cpp index 419b9b362af..76a15ccb7d1 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -342,7 +342,7 @@ static void setHighDpiEnvironmentVariable() && !qEnvironmentVariableIsSet("QT_SCALE_FACTOR") && !qEnvironmentVariableIsSet("QT_SCREEN_SCALE_FACTORS")) { QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); -#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) +#if QT_VERSION == QT_VERSION_CHECK(5, 14, 0) // work around QTBUG-80934 QGuiApplication::setHighDpiScaleFactorRoundingPolicy( Qt::HighDpiScaleFactorRoundingPolicy::Round);