qt5base-lts/tests/auto/widgets/kernel/qapplication
Volker Hilsheimer 92df790f46 QApplication: refactor delivery and propagation of wheel events
Handle wheel grabbing via wheel_widget in a single place, and
propagate events in the same way for all (spontaneous) events.

Handle ScrollMomentum the same way as ScrollUpdate to allow
partial sequences.

Fix the incorrect ignoring of wheel events by default; like all
other input events, they are now again accepted by default and
ignored in the default event handler implementation of QWidget.
This way, implementing the handle suffices to accept the event.
Note that QWidget::wheelEvent doesn't need to be changed, as the
event is ignored there today (an oversight of the change made in
f253f4c3, perhaps).

This also fixes changing of direction of a wheel event while
the event sequence is grabbed by a widget.

Change-Id: Ia0f03c14dede80322d690ca50d085898a0497dbe
Fixes: QTBUG-67032
Task-number: QTBUG-79102
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2020-05-13 15:07:55 +00:00
..
desktopsettingsaware Regenerate qtbase tests and src/* for some small fixes 2019-11-13 13:36:09 +00:00
modal Regenerate qtbase tests and src/* for some small fixes 2019-11-13 13:36:09 +00:00
test Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
tmp
.gitignore
BLACKLIST Update for failures only on dev branch. Use general platform names 2019-08-19 18:22:11 +02:00
CMakeLists.txt cmake: add widgets/kernel tests 2019-10-31 09:49:03 +00:00
heart.svg
qapplication.pro Fix compilation for WinRT 2015-12-14 08:43:15 +00:00
tst_qapplication.cpp QApplication: refactor delivery and propagation of wheel events 2020-05-13 15:07:55 +00:00