summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-07-12 10:25:28 +0200
committerGravatar jan Iversen <jani@apache.org>2018-07-12 22:34:35 +0200
commitd4e76dac9e8dbbb784c7133a4cc918de3121f35c (patch)
tree84fb28a19e62e03232a1c3fb82daed35201da9a4 /desktop-widgets
parent3a314c3dec7e3f383dec458f5edd150f3df87b9d (diff)
downloadsubsurface-d4e76dac9e8dbbb784c7133a4cc918de3121f35c.tar.gz
core: remove Animations from SettingsObjectWrapper and activate qPrefAnimations
remove Animations from SettingsObjectWrapper and reference qPrefAnimations update files using SettingsObjectWrapper/Animations to user qPrefAnimations this activated qPrefAnimations Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/preferences/preferences_defaults.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/preferences/preferences_defaults.cpp b/desktop-widgets/preferences/preferences_defaults.cpp
index 0df9ebde7..a7b5e4c1d 100644
--- a/desktop-widgets/preferences/preferences_defaults.cpp
+++ b/desktop-widgets/preferences/preferences_defaults.cpp
@@ -93,6 +93,6 @@ void PreferencesDefaults::syncSettings()
display->set_font_size(ui->fontsize->value());
display->set_display_invalid_dives(ui->displayinvalid->isChecked());
- auto animation = SettingsObjectWrapper::instance()->animation_settings;
- animation->setAnimationSpeed(ui->velocitySlider->value());
+ auto animation = qPrefAnimations::instance();
+ animation->set_animation_speed(ui->velocitySlider->value());
}