summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-08-06 17:36:29 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-12 11:30:19 -0700
commit75ce813a27fc22fca8e4b1c7484333235c9caea6 (patch)
treee28a6d118bee66886051d47e0f00d7644679a4b2 /tests
parent2b11fd4cc8fca46152bc8c3c0b53658694cfd5bf (diff)
downloadsubsurface-75ce813a27fc22fca8e4b1c7484333235c9caea6.tar.gz
core: activate qPrefLocationService
remove LocationService from SettingsObjectWrapper and reference qPrefLocationService update files using SettingsObjectWrapper/LocationService to use qPrefLocationService this activated qPrefLocationService and removed the similar class from SettingsObjectWrapper. Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/testpreferences.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/testpreferences.cpp b/tests/testpreferences.cpp
index bf2f0ed74..47de21219 100644
--- a/tests/testpreferences.cpp
+++ b/tests/testpreferences.cpp
@@ -147,15 +147,15 @@ void TestPreferences::testPreferences()
TEST(language->dateFormatOverride(), true);
TEST(language->useSystemLanguage(), true);
- auto location = pref->location_settings;
- location->setTimeThreshold(10);
- location->setDistanceThreshold(20);
+ auto location = qPrefLocationService::instance();
+ location->set_time_threshold(10);
+ location->set_distance_threshold(20);
- TEST(location->timeThreshold(), 10);
- TEST(location->distanceThreshold(), 20);
+ TEST(location->time_threshold(), 10);
+ TEST(location->distance_threshold(), 20);
- location->setTimeThreshold(30);
- location->setDistanceThreshold(40);
+ location->set_time_threshold(30);
+ location->set_distance_threshold(40);
TEST(location->timeThreshold(), 30);
TEST(location->distanceThreshold(), 40);