Set the progress bar animation behavior to match other parts of the

program.

svn path=/trunk/; revision=52993
This commit is contained in:
Gerald Combs 2013-10-31 00:05:59 +00:00
parent 46a0d3644d
commit 0de68078c0
1 changed files with 2 additions and 1 deletions

View File

@ -142,7 +142,7 @@ progdlg_t * ProgressBar::show(bool animate, bool terminate_is_stop, gboolean *st
setValue(value);
#ifndef Q_OS_MAC
#if !defined(Q_OS_MAC) || QT_VERSION > QT_VERSION_CHECK(5, 0, 0)
if (animate) {
QGraphicsOpacityEffect *effect = new QGraphicsOpacityEffect(this);
this->setGraphicsEffect(effect);
@ -152,6 +152,7 @@ progdlg_t * ProgressBar::show(bool animate, bool terminate_is_stop, gboolean *st
animation->setDuration(750);
animation->setStartValue(0.1);
animation->setEndValue(1.0);
animation->setEasingCurve(QEasingCurve::InOutQuad);
animation->start();
}
#else