diff options
author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2021-01-29 15:41:23 +0100 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2021-02-01 22:43:59 +0100 |
commit | dafe9e23638c4fe272044fae91380a225e19193a (patch) | |
tree | 74c12afef0fb2340a5c8da78af38509ff1ce1234 /src/plugins/platforms/ios | |
parent | 7d1cda9de3e88db33696675c9723209d0f876cdb (diff) |
Windows: Fix frame margins calculation
Passing nullptr to QHighDpi::toNativePixels() is seldom
correct, and will work only on the main screen.
Instead, call frameMargins() on the platform window
(instead of on the QWindow) and get the margins directly
in native pixels.
Pick-to: 5.15
Fixes: QTBUG-90716
Change-Id: Id7b31ec3246010c367781b64ed832c589bbaeb0d
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/plugins/platforms/ios')
0 files changed, 0 insertions, 0 deletions