summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Andersen <csandersen3@gmail.com>2018-12-18 00:08:38 +0100
committerChristian Andersen <csandersen3@gmail.com>2019-01-28 06:33:44 +0000
commit8b91afe12e2b53d1fccded1e91cdc3e4290042b2 (patch)
treee0aa1e0c712bfc2c49c3cad001d257c0c75cc792 /tests
parente85f43fd4ded62ab4b63185fba54f308d73306fd (diff)
QMdiSubWindow: Avoid potential shaking motion when moving window
When using QMouseEvent::pos to change the position of a widget, the widget may shift in a shaking motion. This is warned about in its documentation. For example if the system has a bit of load, we might receive multiple mouse move events from the OS, before QMdiSubWindow gets the first move event. In that case the first mouse move is ok, but subsequent move events, will use a ::pos value that now does not make sense as the position of the window have changed. The fix is to use QMouseEvent::globalPos. Fixes: QTBUG-72646 Change-Id: I3211cc6627ff8fe26c9520ad0457872f01c32471 Reviewed-by: Andre de la Rocha <andre.rocha@qt.io> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions