From 751c76a5787c4072da836c27f1af913dc671a52e Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 11 Mar 2014 17:36:49 -0300 Subject: Support save / load for the Animation Speed on the Preferences User can now fine-tune the animation speed on the preferences, a value of zero disables it completely. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profile/animationfunctions.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/profile/animationfunctions.cpp') diff --git a/qt-ui/profile/animationfunctions.cpp b/qt-ui/profile/animationfunctions.cpp index 608c4c000..81fbf5eee 100644 --- a/qt-ui/profile/animationfunctions.cpp +++ b/qt-ui/profile/animationfunctions.cpp @@ -26,6 +26,7 @@ namespace Animations void moveTo(QObject *obj, qreal x, qreal y) { QSettings s; + s.beginGroup("Animations"); int msecs = s.value("animation_speed", 500).toInt(); if (msecs != 0){ QPropertyAnimation *animation = new QPropertyAnimation(obj, "pos"); -- cgit v1.2.3-70-g09d2