diff options
author | jan Iversen <jani@apache.org> | 2018-07-04 21:45:48 +0200 |
---|---|---|
committer | jan Iversen <jani@apache.org> | 2018-07-12 18:44:31 +0200 |
commit | da61c1714f24d42f5295bcd60d704e65f503b174 (patch) | |
tree | ea323bfd7164a700c5d2b603fdf013ab2967a164 /desktop-widgets/preferences | |
parent | d7fed0bcb76cc1742f73577b70df048032f70a61 (diff) | |
download | subsurface-da61c1714f24d42f5295bcd60d704e65f503b174.tar.gz |
core: activate qPrefDisplay in SettingsObjectWrapper
add the prepared class qPrefDisplay to SettingsObjectWrapper and thereby making it active.
As a consequence of the uniform naming standard desktop-widgets/preferences_defaults.cpp and
tests/testpreferences.cpp have been updated.
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'desktop-widgets/preferences')
-rw-r--r-- | desktop-widgets/preferences/preferences_defaults.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop-widgets/preferences/preferences_defaults.cpp b/desktop-widgets/preferences/preferences_defaults.cpp index e93848f17..0df9ebde7 100644 --- a/desktop-widgets/preferences/preferences_defaults.cpp +++ b/desktop-widgets/preferences/preferences_defaults.cpp @@ -88,10 +88,10 @@ void PreferencesDefaults::syncSettings() else if (ui->cloudDefaultFile->isChecked()) general->setDefaultFileBehavior(CLOUD_DEFAULT_FILE); - auto display = SettingsObjectWrapper::instance()->display_settings; - display->setDivelistFont(ui->font->currentFont().toString()); - display->setFontSize(ui->fontsize->value()); - display->setDisplayInvalidDives(ui->displayinvalid->isChecked()); + auto display = qPrefDisplay::instance(); + display->set_divelist_font(ui->font->currentFont().toString()); + 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()); |