From da61c1714f24d42f5295bcd60d704e65f503b174 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Wed, 4 Jul 2018 21:45:48 +0200 Subject: 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 --- desktop-widgets/preferences/preferences_defaults.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'desktop-widgets/preferences') 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()); -- cgit v1.2.3-70-g09d2