diff options
author | Morten Sørvig <morten.sorvig@qt.io> | 2022-05-19 16:56:23 +0200 |
---|---|---|
committer | Morten Sørvig <morten.sorvig@qt.io> | 2022-07-06 17:56:58 +0200 |
commit | e1c8ad359d6fdb536732506f18a3ce864db632e4 (patch) | |
tree | 30f05871a3e49a8c47d6456e0657c940bea44d93 /src/gui/kernel/qguiapplication.cpp | |
parent | 5b23f08b811ac238d20767e48e0ee1457c0fb8e6 (diff) |
Reset highDpiScaleFactorRoundingPolicy in QGuiApplication destructor
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ø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/gui/kernel/qguiapplication.cpp')
-rw-r--r-- | src/gui/kernel/qguiapplication.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index dbe50aee82..6f89efb26c 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(); } |