Only fast-foward states when there is a transition.
authorMichael Brasser <michael.brasser@nokia.com>
Thu, 8 Sep 2011 05:22:22 +0000 (15:22 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 8 Sep 2011 23:07:55 +0000 (01:07 +0200)
commitde868c71b7ec5f463ed9b1a142f3b805d1c3d627
treea3051237c9f3c0d019b6df94266d3bb5346bfcb1
parenteb567b03b5e29bd0cd52c87cc1a59cc96ecfd7e8
Only fast-foward states when there is a transition.

Fast-forwarding is only required when we are animating a state change.

Task-number: QTBUG-16662
Change-Id: I20e1a056cb3268b92b606be34809bcd0e2bfb898
Reviewed-on: http://codereview.qt-project.org/4390
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Charles Yin <charles.yin@nokia.com>
src/declarative/util/qdeclarativetransitionmanager.cpp
tests/auto/declarative/qdeclarativestates/data/avoidFastForward.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp