aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/qt/progress_bar.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/qt/progress_bar.cpp b/ui/qt/progress_bar.cpp
index 1085e3dd1b..8b1a1883b3 100644
--- a/ui/qt/progress_bar.cpp
+++ b/ui/qt/progress_bar.cpp
@@ -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