Fine-tune animation's pause()/resume() behaviors
authorCharles Yin <yinyunqiao@gmail.com>
Fri, 16 Mar 2012 13:15:00 +0000 (23:15 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 17 Apr 2012 01:03:07 +0000 (03:03 +0200)
commitc38bec0e1ecf5f681dc3dc2e3ab75ded91131e88
treea90dbe478ab06df1abfc252d4c9834b03d8f982f
parentb20df2bf54aec02f46d960868562cf1b100d455c
Fine-tune animation's pause()/resume() behaviors

Only allow pause/resume to be used while running, and when stop the
animation reset the paused value to false.

Change-Id: Ia465045006478936146356f9e2e0632614c6b527
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/quick/util/qquickanimation.cpp
tests/auto/quick/qquickanimations/tst_qquickanimations.cpp