diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-11-14 09:10:06 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-14 09:10:06 -0800 |
commit | 76d07635270bb3068b7d9a559b481d3c094f0d7b (patch) | |
tree | cd507fe34e03b8c5cc2c10e9d991a50f44635d9e /subsurface-core/qthelper.cpp | |
parent | 24404a401d5a21134b153000fffc74bd429a0631 (diff) | |
download | subsurface-76d07635270bb3068b7d9a559b481d3c094f0d7b.tar.gz |
Location service: make distance and time threshold configurable
Right now the distance is always in meters, the mobile app doesn't deal
with units at all, anyway.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/qthelper.cpp')
-rw-r--r-- | subsurface-core/qthelper.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/subsurface-core/qthelper.cpp b/subsurface-core/qthelper.cpp index 63248f6c4..c1205ce6f 100644 --- a/subsurface-core/qthelper.cpp +++ b/subsurface-core/qthelper.cpp @@ -1601,6 +1601,13 @@ void loadPreferences() // Subsurface webservice id is stored outside of the groups GET_TXT("subsurface_webservice_uid", userid); + // but the related time / distance threshold (only used in the mobile app) + // are in their own group + s.beginGroup("locationService"); + GET_INT("distance_threshold", distance_threshold); + GET_INT("time_threshold", time_threshold); + s.endGroup(); + // GeoManagement s.beginGroup("geocoding"); #ifdef DISABLED |