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>
This commit is contained in:
jan Iversen 2018-07-12 10:25:28 +02:00
parent 3a314c3dec
commit d4e76dac9e
3 changed files with 5 additions and 43 deletions

View file

@ -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());
}