From e1c8ad359d6fdb536732506f18a3ce864db632e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20S=C3=B8rvig?= Date: Thu, 19 May 2022 16:56:23 +0200 Subject: [PATCH] Reset highDpiScaleFactorRoundingPolicy in QGuiApplication destructor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make sure we start with the default state if the app object is deleted and created again, like for the other static variables. Change-Id: Ie97a73022298d21c9fbaaefcae3091b637264401 Reviewed-by: Tor Arne Vestbø --- src/gui/kernel/qguiapplication.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index dbe50aee82e..6f89efb26c4 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -682,6 +682,7 @@ QGuiApplication::~QGuiApplication() QGuiApplicationPrivate::lastCursorPosition.reset(); QGuiApplicationPrivate::currentMousePressWindow = QGuiApplicationPrivate::currentMouseWindow = nullptr; QGuiApplicationPrivate::applicationState = Qt::ApplicationInactive; + QGuiApplicationPrivate::highDpiScaleFactorRoundingPolicy = Qt::HighDpiScaleFactorRoundingPolicy::PassThrough; QGuiApplicationPrivate::currentDragWindow = nullptr; QGuiApplicationPrivate::tabletDevicePoints.clear(); }