Introduce QWheelEvent::Phase (Begin, Changed, Ended)
authorJ-P Nurmi <jpnurmi@digia.com>
Mon, 5 Aug 2013 11:34:33 +0000 (13:34 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 8 Aug 2013 13:09:40 +0000 (15:09 +0200)
commit9dfe4b0e683d706400a2e929a8de97df64ca172e
treebbcd8ce3e6a9ffdffeef0be9a6e9d35dd7412e79
parentd916ed12b3ce36fce04f107751423f9986be52f0
Introduce QWheelEvent::Phase (Begin, Changed, Ended)

Some platforms (read: OS X) send wheel events without delta to indicate
that scrolling is about to start or has ended. Currently, Qt simply
ignores wheel events that have no delta. This change introduces a new
QWheelEvent attribute that specifies the phase, and makes it possible
to receive the special wheel events in started/ended phases. These
events are required for implementing correctly behaving transient
scrollbars.

Change-Id: Ib8ce0d9ce9be63b2ad60aa7b0aaa1f12ef6cad09
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
src/gui/kernel/qevent.cpp
src/gui/kernel/qevent.h
src/gui/kernel/qguiapplication.cpp
src/gui/kernel/qwindowsysteminterface.cpp
src/gui/kernel/qwindowsysteminterface.h
src/gui/kernel/qwindowsysteminterface_p.h
src/widgets/kernel/qwidgetwindow.cpp