qt5base-lts/tests/auto/widgets
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
..
dialogs Merge remote-tracking branch 'origin/5.15' into dev 2020-04-22 15:28:01 +02:00
effects Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
graphicsview QGraphicsAnchorLayout: port to QHVContainer [4/4]: sweep Orientation -> Qt::Orientation 2020-05-09 08:24:04 +02:00
itemviews Make qtbase compile without QT_CONFIG(timezone) 2020-05-11 14:42:00 +03:00
kernel QApplication: refactor delivery and propagation of wheel events 2020-05-13 15:07:55 +00:00
styles Remove deprecated QStyle enum values 2020-04-16 16:53:18 +02:00
util Merge remote-tracking branch 'origin/5.15' into dev 2020-04-08 20:11:39 +02:00
widgets Make qtbase compile without QT_CONFIG(timezone) 2020-05-11 14:42:00 +03:00
CMakeLists.txt
widgets.pro