aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/profile
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-03-11 17:36:49 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-11 17:41:41 -0700
commit751c76a5787c4072da836c27f1af913dc671a52e (patch)
tree28ec33a385c18f6c2ba16b935543498a53d06a82 /qt-ui/profile
parent9f37bac07a06870bc3e5d1c150496ed347a4de99 (diff)
downloadsubsurface-751c76a5787c4072da836c27f1af913dc671a52e.tar.gz
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 <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r--qt-ui/profile/animationfunctions.cpp1
1 files changed, 1 insertions, 0 deletions
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");