summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2019-03-05 11:14:21 +0100
committerMorten Johan Sørvig <morten.sorvig@qt.io>2019-06-19 15:05:15 +0200
commitb6ded193ee64ffe67df6d22e7a23aa1ea9e02ec7 (patch)
treebeb64a422a42364a0101e2abfbe0f29a6a2c7f01 /src/corelib
parent244ff3311983112709643e789f42d1603ddbd401 (diff)
QHighDpi::fromNativePixels: use correct screen
Calls like QHighDpi::fromNativePixels(point, window) would return device independent coordinates outside any screen in cases where the window is spanning multiple screens and the native point was not on the main screen. Correct this by looking up the correct screen and use its scale factor and origin when scaling coordinates. Task-number: QTBUG-73231 Change-Id: I01a3a42f42121b8d9f4ced2bb0fb023d6ae6bfe7 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/corelib')
0 files changed, 0 insertions, 0 deletions