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:
parent
5b23f08b81
commit
e1c8ad359d
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user