diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2021-09-11 17:01:16 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-09-13 11:21:34 -0700 |
commit | 2a0d14b10065540d7d709950c0005bed459f5e82 (patch) | |
tree | 0aed144e712bc68126d9f3eb471f3c449414683b /mobile-widgets | |
parent | 6f813b9f8e58a7b6529e3be728e0ae37e8401400 (diff) | |
download | subsurface-2a0d14b10065540d7d709950c0005bed459f5e82.tar.gz |
core: remove location service preferences
Including the related tests.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/Settings.qml | 31 | ||||
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 1 |
2 files changed, 0 insertions, 32 deletions
diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml index e0497d36c..1792d9865 100644 --- a/mobile-widgets/qml/Settings.qml +++ b/mobile-widgets/qml/Settings.qml @@ -525,40 +525,9 @@ TemplatePage { width: parent.width GridLayout { - id: gpsPrefs visible: sectionAdvanced.isExpanded width: parent.width columns: 2 - TemplateLabel { - text: qsTr("GPS location service") - font.pointSize: subsurfaceTheme.headingPointSize - font.weight: Font.Light - Layout.topMargin: Kirigami.Units.largeSpacing - Layout.bottomMargin: Kirigami.Units.largeSpacing / 2 - Layout.columnSpan: 2 - } - TemplateLabel { - text: qsTr("Distance threshold (meters)") - } - TemplateTextField { - id: distanceThreshold - Layout.preferredWidth: Kirigami.Units.gridUnit * 2 - text: PrefLocationService.distance_threshold - onEditingFinished: { - PrefLocationService.distance_threshold = distanceThreshold.text - } - } - TemplateLabel { - text: qsTr("Time threshold (minutes)") - } - TemplateTextField { - id: timeThreshold - Layout.preferredWidth: Kirigami.Units.gridUnit * 2 - text: PrefLocationService.time_threshold / 60 - onEditingFinished: { - PrefLocationService.time_threshold = timeThreshold.text * 60 - } - } TemplateLine { visible: sectionAdvanced.isExpanded diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 1bb429ee6..313e3fcb5 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -42,7 +42,6 @@ #include "core/ssrf.h" #include "core/save-profiledata.h" #include "core/settings/qPrefLog.h" -#include "core/settings/qPrefLocationService.h" #include "core/settings/qPrefTechnicalDetails.h" #include "core/settings/qPrefPartialPressureGas.h" #include "core/settings/qPrefUnit.h" |