qt5base-lts/tests/auto/corelib/animation
Andreas Aardal Hanssen f3597af5ad Fix zero-duration animations running Backwards.
If you set the duration of any variant or property animation to 0,
its progress will be stuck at 1 (0..1), and its "end" value set on
the target object, after start() has been called. If you change the
direction of the animation to QAbstractAnimation::Backward, you
would expect the progress to be 0 after start. Instead it's still
1; the code seems to assume that if the duration is 0, the
progress must be 1 always.

The fix is that if the duration is 0, the direction is checked to
determine whether progress should be 0 (Backward) or 1 (Forward).

Task-number: QTBUG-27969
Change-Id: Ibeca084bbbce41df1dca7b7d96c15b6b54394996
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Thierry Bastian <thierryb@filewave.com>
Reviewed-by: Magne Zachrisen <mazachri@cisco.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
2012-11-13 15:34:56 +01:00
..
qabstractanimation Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qanimationgroup normalise signal/slot signatures [QtCore tests] 2012-10-22 03:21:01 +02:00
qparallelanimationgroup normalise signal/slot signatures [QtCore tests] 2012-10-22 03:21:01 +02:00
qpauseanimation Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qpropertyanimation Fix zero-duration animations running Backwards. 2012-11-13 15:34:56 +01:00
qsequentialanimationgroup normalise signal/slot signatures [QtCore tests] 2012-10-22 03:21:01 +02:00
qvariantanimation Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
animation.pro Make animation autotests build without widgets 2012-06-07 00:39:05 +02:00