From 75ce813a27fc22fca8e4b1c7484333235c9caea6 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Mon, 6 Aug 2018 17:36:29 +0200 Subject: 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 --- tests/testpreferences.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests') 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); -- cgit v1.2.3-70-g09d2