Fix desktop style animations to stop when the control is hidden
Fix desktop style animations to stop when the control 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 control is visible.

Note: In order to restart such style animations, QQuickStyleItem needs
to be manually updated when it becomes visible.

Task-number: QTBUG-35319
Change-Id: Ia053912883b9babb184a5467adfc90dd619b3dc5
Reviewed-by: Gunnar Sletta <d0b71651f3efaa9fda200bbcc395b7b82a871fdd@digia.com>
Reviewed-by: Jens Bache-Wiig <9cea9d70b08f8210134ec5959114f72bad51ed1d@digia.com>

drgvond/qtquickcontrols,drgvond/qtquickcontrols,mizukusak/qtquickcontrols,kobolabs/qtquickcontrols,kobolabs/qtquickcontrols,mizukusak/qtquickcontrols,kobolabs/qtquickcontrols,drgvond/qtquickcontrols,mizukusak/qtquickcontrols