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