Add mouse wheel events handler to MouseArea
authorLuis Gabriel Lima <luis.gabriel@openbossa.org>
Thu, 5 Jan 2012 18:19:26 +0000 (15:19 -0300)
committerQt by Nokia <qt-info@nokia.com>
Sat, 10 Mar 2012 01:28:11 +0000 (02:28 +0100)
commitf2e1be963f885a6030136591414cdbda26d50695
tree3ff02cedfbf5df61e8459dc6d58afd437b23e87b
parent78356f6038065227acb2dc898994765f49f07b42
Add mouse wheel events handler to MouseArea

This patch was based on the attached patch in QTBUG-7369. It basically
exposes the wheel events to MouseArea via the onWheel signal.

The current API is based on the new QWheelEvent API introduced by this
patch: http://codereview.qt-project.org/#change,12532

Task-number: QTBUG-7369
Change-Id: Id58513715c2d0ae81e3a69e9e1ed400bbae07507
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
examples/qtquick/mousearea/mousearea-wheel-example.qml [new file with mode: 0644]
src/quick/items/qquickcanvas.cpp
src/quick/items/qquickevents.cpp
src/quick/items/qquickevents_p_p.h
src/quick/items/qquickitemsmodule.cpp
src/quick/items/qquickmousearea.cpp
src/quick/items/qquickmousearea_p.h
src/quick/items/qquickmousearea_p_p.h
tests/auto/quick/qquickmousearea/data/wheel.qml [new file with mode: 0644]
tests/auto/quick/qquickmousearea/tst_qquickmousearea.cpp