Fix QScreen orientation not being updated when setting a platform screen
ScreenPrivate::updatePrimaryOrientation() depends on the geometry being set which is calculated by updateHighDpi(). Move the call up. Amends 370289bef68d8505b66cb27150a3f596e23c5ed3. Task-number: QTBUG-76902 Change-Id: I8188e04ad4a2ef7d414a2b78ecb3dd6c64528fa6 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit d10c34b0cc896c711fce8ae5629e3cc3d74b6452)
This commit is contained in:
parent
ecd11e498f
commit
957a8e1b83
@ -118,8 +118,8 @@ void QScreenPrivate::setPlatformScreen(QPlatformScreen *screen)
|
||||
if (refreshRate < 1.0)
|
||||
refreshRate = 60.0;
|
||||
|
||||
updatePrimaryOrientation();
|
||||
updateHighDpi();
|
||||
updatePrimaryOrientation(); // derived from the geometry
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user