Fix style animations to stop when the item is hidden
authorJ-P Nurmi <jpnurmi@digia.com>
Mon, 2 Dec 2013 21:44:21 +0000 (22:44 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 3 Dec 2013 10:44:42 +0000 (11:44 +0100)
commit3b7a8d9d5e214a88f5855800e7bf54da4425d7b9
tree649577996ad662819d23a6edd64bf85c8eeef810
parentd05671788d2a87ef93c7e368754b5106c5dbe733
Fix style animations to stop when the item is hidden

QStyleAnimation automatically stopped for hidden QWidgets, but didn't
know anything about QQuickItems and kept animating regardless of their
visibility. QStyleAnimation was changed so that it will keep animating
only as long as the animation target accepts animation updates. This
change ensures that the style animation updates are accepted only when
the item is visible.

Task-number: QTBUG-35319
Change-Id: I3c93a653316b8abbbc32940cd7499b660828eff8
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
src/quick/items/qquickitem.cpp