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>
This commit is contained in:
Morten Sørvig 2022-05-19 16:56:23 +02:00
parent 5b23f08b81
commit e1c8ad359d

View File

@ -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();
}