diff options
author | Thorbjørn Lund Martsum <tmartsum@gmail.com> | 2022-06-14 08:52:47 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-06-29 22:12:16 +0000 |
commit | 3c348cbfa0f674a574c56b0171e1bc0e474c2282 (patch) | |
tree | 36c77f8aff65679c4a1b7b73ac9e896ceddb1c38 /src/plugins/platforms/qnx/qqnxcursor.h | |
parent | 681397fb5bc3f885d97dc738b12b2c4a8b656208 (diff) |
Fix QDockWidget move between screens with different dpr
When partly moved back and forth between screens
with different dprs (device pixel ratios)
unexpected jumps and size changes could occur.
(See the linked issue for details)
This patch maps global coordinates to native ones
and vice versa (in QDockWidgetPrivate::mouseMoveEvent()),
so that the calculated position is the right coordinate
on the right screen.
Fixes: QTBUG-104205
Change-Id: I0e59792a946e0444fed2e2b857f2f8b140afc9b7
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
(cherry picked from commit 54f328f0e8205480749a6d8d2ebe0e58cb1cdb67)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxcursor.h')
0 files changed, 0 insertions, 0 deletions