summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2020-05-20 14:27:16 +0200
committerMorten Johan Sørvig <morten.sorvig@qt.io>2020-10-20 07:26:38 +0200
commit0ab89881c5aecc31e44fd83b1a63bd4de52ebe4a (patch)
tree7695c6a3f3eda3b48bc8dc0a55c184b64cbd7515 /src/plugins/platforms
parente8fabb29462e6ee268bde5267e3d7bca23addbb2 (diff)
high-dpi: Re-implement mapToGlobal and mapFromGlobal
(This code is required to handle corner cases such as a QWindow covering multiple screens, where the normal code path does not give correct results.) Move the map[to|from]Global implementation from qhighdpiscaling.cpp, and implement it in terms of [to|from]NativeGlobalPosition. These functions implement the required screenAt()-type searching. The implementation strategy for both mapping functions is to first map to the native coordinate system, perform the globalPos addition or subtraction, and then map the result back to device independent coordinates. Task-number: QTBUG-81695 Change-Id: I44e9e68651634650964e839b1e564b50f434553f Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/plugins/platforms')
0 files changed, 0 insertions, 0 deletions