Fix inconsistent playing / paused property setting and signals
authorDamian Jansen <damian.jansen@nokia.com>
Thu, 19 Jul 2012 04:09:47 +0000 (14:09 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 25 Jul 2012 02:09:33 +0000 (04:09 +0200)
commit82212d1dd15658e25a094f26892ff937b4df41ec
treef55bb79e60404ed9f816fe30f621f0a5b5b00635
parent2d4f74b7d4a77f3470135e559d619c351cef6788
Fix inconsistent playing / paused property setting  and signals

Playing should only indicate false if it has been set as such
in code, or in the event of a valid image but non-movie being
used.
Noted the edge case in documentation.
Signals were not being emitted for playing/paused in the cases
where an image was not loaded. Paused property was also being
incorrectly assigned, which supressed pause behavior.

Task-number: QTBUG-26478
Change-Id: I1aaab9b7c495811114b30b491a900804a75d590f
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
src/quick/items/qquickanimatedimage.cpp
src/quick/items/qquickanimatedimage_p_p.h
tests/auto/quick/qquickanimatedimage/data/green.png [new file with mode: 0644]
tests/auto/quick/qquickanimatedimage/tst_qquickanimatedimage.cpp