QWindowsVistaStyle: Do not stop animations when falling back to XP.
Otherwise, progress bar animations are stopped. Task-number: QTBUG-46308 Change-Id: I7b6a2b26afb885db6bc9aea719a002f0ebe7274d Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
This commit is contained in:
parent
a8dda3b8b0
commit
fe6eeab561
@ -250,8 +250,6 @@ void QWindowsVistaStyle::drawPrimitive(PrimitiveElement element, const QStyleOpt
|
||||
|
||||
int state = option->state;
|
||||
if (!QWindowsVistaStylePrivate::useVista()) {
|
||||
foreach (const QObject *target, d->animationTargets())
|
||||
d->stopAnimation(target);
|
||||
QWindowsStyle::drawPrimitive(element, option, painter, widget);
|
||||
return;
|
||||
}
|
||||
@ -810,8 +808,6 @@ void QWindowsVistaStyle::drawControl(ControlElement element, const QStyleOption
|
||||
QWindowsVistaStylePrivate *d = const_cast<QWindowsVistaStylePrivate*>(d_func());
|
||||
|
||||
if (!QWindowsVistaStylePrivate::useVista()) {
|
||||
foreach (const QObject *target, d->animationTargets())
|
||||
d->stopAnimation(target);
|
||||
QWindowsStyle::drawControl(element, option, painter, widget);
|
||||
return;
|
||||
}
|
||||
@ -1494,8 +1490,6 @@ void QWindowsVistaStyle::drawComplexControl(ComplexControl control, const QStyle
|
||||
{
|
||||
QWindowsVistaStylePrivate *d = const_cast<QWindowsVistaStylePrivate*>(d_func());
|
||||
if (!QWindowsVistaStylePrivate::useVista()) {
|
||||
foreach (const QObject *target, d->animationTargets())
|
||||
d->stopAnimation(target);
|
||||
QWindowsStyle::drawComplexControl(control, option, painter, widget);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user