Fix style animations to stop when the animation target is hidden
authorJ-P Nurmi <jpnurmi@digia.com>
Mon, 2 Dec 2013 21:23:11 +0000 (22:23 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 4 Dec 2013 08:11:28 +0000 (09:11 +0100)
commitac54abfb07579c747612c0d9e53089fe5cd32caf
treecc6cf21bdcb8674f5eecb18705bbc3f01a4d9296
parent1fc28716e67cb9a4384c99c39e8a283ca344e771
Fix style animations to stop when the animation target is hidden

QStyleAnimation automatically stopped for hidden QWidgets, but didn't
know anything about QQuickItems and kept animating regardless of their
visibility. This change ensures that style animations stop as soon as
the animation target no longer accepts the animation update eg. it has
become hidden or the window was minimized.

Task-number: QTBUG-35319
Change-Id: Ie48191fd918c626c0d9afe2e7d2390c495efb071
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
src/widgets/graphicsview/qgraphicsitem.cpp
src/widgets/graphicsview/qgraphicswidget.cpp
src/widgets/kernel/qwidget.cpp
src/widgets/styles/qstyleanimation.cpp