Emit movement signals for flick().
authorMichael Brasser <michael.brasser@live.com>
Tue, 21 Jul 2015 19:31:19 +0000 (14:31 -0500)
committerMichael Brasser <michael.brasser@live.com>
Wed, 22 Jul 2015 17:58:00 +0000 (17:58 +0000)
commita4498f155085ab47d3c7a81ab318d9be7bb7fad3
tree5f7243c59353d4057678bc85eb620178036b1eb9
parent5ba31c335d3e3e14aaa9ba1c7e236b0ba300ce0f
Emit movement signals for flick().

Make flick() more like a real flick and ensure the movement signals
and properties are updated. This allows them to be handled from QML.

This also fixes issues with flick() and dynamic delegates. Flickable
has several checks of the form:

    !d->pressed && !d->hData.moving && !d->vData.moving

That were processed incorrectly for flick(), as the moving variables
were not being updated.

[ChangeLog][QtQuick][Flickable] The movement related signals and
properties are now updated for flicks started via the flick function.

Change-Id: I7e96e2e12a4d0a0ee73ddd6f29d95f19c44667b0
Task-number: QTBUG-34507
Reviewed-by: Martin Jones <martin.jones@qinetic.com.au>
src/quick/items/qquickflickable.cpp
tests/auto/quick/qquickflickable/data/movementSignals.qml [new file with mode: 0644]
tests/auto/quick/qquickflickable/tst_qquickflickable.cpp