Don't emit moving and flicking signals unnecessarily
authorBea Lam <bea.lam@nokia.com>
Mon, 4 Jun 2012 03:34:57 +0000 (13:34 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 6 Jun 2012 08:14:01 +0000 (10:14 +0200)
commitc37c4215b0cfd31967b5799ebb0f0e78a55f7e85
treee4bc695f80093b598c325ab530ed61605b79a943
parent734c8ffbd361467d01eb278e9e289795f7139e94
Don't emit moving and flicking signals unnecessarily

The moving and flicking signals should only be emitted once when
the view has been moved/flicked both vertically and horizontally. (This
was already done correctly for the dragging signals.)

Also changes QQuickFlickable::flick() to return bool instead of void.
Subclasses no longer emit the flicking signals but call
flickingStarted() instead.

Also splits the tst_qquickflickable::movingAndDragging() test up into
several tests.

Change-Id: Ie527568a9702049dd0bcda18c2eb3e43d8938a18
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/quick/items/qquickflickable.cpp
src/quick/items/qquickflickable_p.h
src/quick/items/qquickflickable_p_p.h
src/quick/items/qquickgridview.cpp
src/quick/items/qquicklistview.cpp
tests/auto/quick/qquickflickable/data/flickable03.qml
tests/auto/quick/qquickflickable/tst_qquickflickable.cpp