aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testpreferences.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testpreferences.cpp')
-rw-r--r--tests/testpreferences.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/tests/testpreferences.cpp b/tests/testpreferences.cpp
index 585044fd0..38c132ee5 100644
--- a/tests/testpreferences.cpp
+++ b/tests/testpreferences.cpp
@@ -445,22 +445,22 @@ void TestPreferences::testPreferences()
TEST(general->pscrRatio(), 1);
TEST(general->useDefaultFile(), false);
- auto display = pref->display_settings;
- display->setDivelistFont("comic");
- display->setFontSize(10.0);
- display->setDisplayInvalidDives(true);
-
- TEST(display->divelistFont(),QStringLiteral("comic"));
- TEST(display->fontSize(), 10.0);
- TEST(display->displayInvalidDives(), true);
-
- display->setDivelistFont("helvetica");
- display->setFontSize(14.0);
- display->setDisplayInvalidDives(false);
-
- TEST(display->divelistFont(),QStringLiteral("helvetica"));
- TEST(display->fontSize(), 14.0);
- TEST(display->displayInvalidDives(), false);
+ auto display = qPrefDisplay::instance();
+ display->set_divelist_font("comic");
+ display->set_font_size(10.0);
+ display->set_display_invalid_dives(true);
+
+ TEST(display->divelist_font(),QStringLiteral("comic"));
+ TEST(display->font_size(), 10.0);
+ TEST(display->display_invalid_dives(), true);
+
+ display->set_divelist_font("helvetica");
+ display->set_font_size(14.0);
+ display->set_display_invalid_dives(false);
+
+ TEST(display->divelist_font(),QStringLiteral("helvetica"));
+ TEST(display->font_size(), 14.0);
+ TEST(display->display_invalid_dives(), false);
auto language = pref->language_settings;
language->setLangLocale ("en_US");