mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
d7fed0bcb7
commit
da61c1714f
7 changed files with 26 additions and 111 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue