Fix SpringAnimation in Behavior when current value is set.
authorMichael Brasser <michael.brasser@jollamobile.com>
Wed, 11 Dec 2013 18:28:53 +0000 (12:28 -0600)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 12 Dec 2013 20:29:35 +0000 (21:29 +0100)
commita2dad3ddee9c4bf274a7c6469342e4104605ceeb
treeb56f831cd3fd2b9609efdd4b9656c416b4e4e9b9
parentf1997ba4d6e47cc13811630caeb4cc0cf7442401
Fix SpringAnimation in Behavior when current value is set.

Fixes regression introduced by d489f2f6549a86b3949004d1c8ec68487fc2adb7.
We now only avoid running the animation if the Behavior wasn't already
mid-animation. This ensure correct behavior for SpringAnimation, and
also correct state for 'running'.

Task-number: QTBUG-21549
Change-Id: I0f97813294cca22fb7a273e222fa0549c6de9ca7
Reviewed-by: Alan Alpert (Personal) <416365416c@gmail.com>
src/quick/util/qquickbehavior.cpp
tests/auto/quick/qquickbehaviors/data/qtbug21549-2.qml [new file with mode: 0644]
tests/auto/quick/qquickbehaviors/tst_qquickbehaviors.cpp