Makes QSmoothedAnimation respect zero duration.
authorThomas Kristensen <thkriste@cisco.com>
Mon, 11 Mar 2013 11:54:56 +0000 (12:54 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 13 Mar 2013 06:06:20 +0000 (07:06 +0100)
commit18f7c187697db224ca412e969663c5e4470cf104
tree87f603db90441523bb5609091627c55316de9bd8
parentc284672e5d51def2dfa63343ca84ebc9ce02aa2d
Makes QSmoothedAnimation respect zero duration.

In automated GUI test scenarios it often desired not to wait for animations
before verifying a result, so setting the duration to zero should accomplish
this, before this patch; if duration was set to zero QSmoothedAnimation
would treat it as if duration was not set, and used velocity to calculate
animation speed.

Change-Id: Ia57f1c9ffdd2056ac7c85d1cb94dbd3835fcbb7a
Reviewed-by: Andreas Aardal Hanssen <andreas@hanssen.name>
src/quick/util/qquicksmoothedanimation.cpp
tests/auto/quick/qquicksmoothedanimation/data/smoothedanimationZeroDuration.qml [new file with mode: 0644]
tests/auto/quick/qquicksmoothedanimation/tst_qquicksmoothedanimation.cpp