qt5base-lts/tests/auto/widgets/kernel
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
..
qaction Remove QGuiAction again and split QAction implementation up instead 2020-03-29 11:18:57 +01:00
qactiongroup Remove QGuiAction again and split QAction implementation up instead 2020-03-29 11:18:57 +01:00
qapplication Introduce QInputDevice hierarchy; replace QTouchDevice 2020-06-16 22:06:56 +02:00
qboxlayout Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qformlayout Remove winrt 2020-06-06 20:25:49 +02:00
qgesturerecognizer Use QList instead of QVector in widgets tests 2020-06-25 10:13:43 +02:00
qgridlayout Remove deprecated QStyle enum values 2020-04-16 16:53:18 +02:00
qlayout Use QList instead of QVector in widgets tests 2020-06-25 10:13:43 +02:00
qshortcut tst_QShortcut: avoid int -> QChar conversions 2020-05-12 07:43:26 +02:00
qsizepolicy Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qstackedlayout Merge remote-tracking branch 'origin/dev' into wip/cmake 2019-11-19 13:53:21 +01:00
qtooltip Merge remote-tracking branch 'origin/dev' into wip/cmake 2019-11-19 13:53:21 +01:00
qwidget Use QList instead of QVector in widgets tests 2020-06-25 10:13:43 +02:00
qwidget_window Fix delivery of MouseMove events to newly opened popup windows 2020-07-01 14:52:49 +02:00
qwidgetaction Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qwidgetmetatype Port Q_STATIC_ASSERT(_X) to static_assert 2020-06-19 19:38:23 +02:00
qwidgetsvariant cmake: add widgets/kernel tests 2019-10-31 09:49:03 +00:00
qwindowcontainer Remove winrt 2020-06-06 20:25:49 +02:00
CMakeLists.txt Reduce QDesktopWidget API to bare minimum 2020-05-15 18:46:39 +02:00
kernel.pro Reduce QDesktopWidget API to bare minimum 2020-05-15 18:46:39 +02:00