qt5base-lts/tests/auto/widgets
Volker Hilsheimer ab6861b01f Fix delivery of MouseMove events to newly opened popup windows
Amend d934fd7f54, which was too naive in
assuming that any change to the popup stack while a popup had been
pressed into should result in mouse move events to be delivered without
buttons.

Instead, add a new flag that is set explicitly when the qt_popup_down
widget is closed, and remove buttons from the move move events only when
that flag is set.

Add the sorely missing test case as well, even if we have to accept that
not all behavior can be tested reliably. Ie. on macOS, the simulated
mouse event differs from the event we do get from the QPA plugin or the
system; on Xcb, some of the behavior depends on the window manager.
This is something we could try to clean up for Qt 6.

Change-Id: Ibf0a0a6fb7d401915057365788947e5a35aa20c3
Fixes: QTBUG-84926
Task-number: QTBUG-82538
Pick-to: 5.15
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Liang Qi <liang.qi@qt.io>
2020-07-01 14:52:49 +02:00
..
dialogs QFileDialog: remove deprecated mode QFileDialog::DirectoryOnly 2020-06-26 22:40:34 +02:00
effects Phase 2 of removing QDesktopWidget 2020-06-08 20:29:49 +02:00
graphicsview Use QList instead of QVector in widgets tests 2020-06-25 10:13:43 +02:00
itemviews Use QList instead of QVector in widgets tests 2020-06-25 10:13:43 +02:00
kernel Fix delivery of MouseMove events to newly opened popup windows 2020-07-01 14:52:49 +02:00
styles Use QList instead of QVector in widgets tests 2020-06-25 10:13:43 +02:00
util Introduce QInputDevice hierarchy; replace QTouchDevice 2020-06-16 22:06:56 +02:00
widgets Use QList instead of QVector in widgets tests 2020-06-25 10:13:43 +02:00
CMakeLists.txt Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
widgets.pro Move QGestureRecognizer test to widgets/kernel 2017-06-02 18:36:11 +00:00