The animation is not just supposed to run when indeterminate, but
also while it is progressing.
Change-Id: If176bd230c2f6f83781e01ea77526c24d54c8477
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
tdi.min = pb->minimum;
tdi.value = pb->progress;
tdi.attributes = vertical ? 0 : kThemeTrackHorizontal;
- if (isIndeterminate) {
+
+ if (isIndeterminate || tdi.value < tdi.max) {
if (QProgressStyleAnimation *animation = qobject_cast<QProgressStyleAnimation*>(d->animation(opt->styleObject)))
tdi.trackInfo.progress.phase = animation->animationStep();
else
void text();
void format();
void setValueRepaint();
+#ifndef Q_OS_MAC
void setMinMaxRepaint();
+#endif
void sizeHint();
void formatedText_data();
void formatedText();
}
}
+// This test is invalid on Mac, since progressbars
+// are animated there
+
+#ifndef Q_OS_MAC
void tst_QProgressBar::setMinMaxRepaint()
{
ProgressBar pbar;
QTRY_VERIFY(pbar.repainted);
}
}
+#endif //Q_OS_MAC
void tst_QProgressBar::sizeHint()
{