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 /qt-mobile/qml/Preferences.qml | |
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 'qt-mobile/qml/Preferences.qml')
-rw-r--r-- | qt-mobile/qml/Preferences.qml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/qt-mobile/qml/Preferences.qml b/qt-mobile/qml/Preferences.qml index 49ea7b057..f67f99ff7 100644 --- a/qt-mobile/qml/Preferences.qml +++ b/qt-mobile/qml/Preferences.qml @@ -90,6 +90,28 @@ Item { Layout.fillWidth: true } + Label { + text: "Distance threshold (meters)" + Layout.alignment: Qt.AlignRight + } + + TextField { + id: distanceThreshold + text: manager.distanceThreshold + Layout.fillWidth: true + } + + Label { + text: "Time threshold (minutes)" + Layout.alignment: Qt.AlignRight + } + + TextField { + id: timeThreshold + text: manager.timeThreshold + Layout.fillWidth: true + } + Item { width: units.gridUnit; height: width } Item { height: saveButton.height @@ -103,6 +125,8 @@ Item { manager.cloudPassword = password.text manager.saveCloudPassword = savePassword.checked manager.ssrfGpsWebUserid = userid.text + manager.distanceThreshold = distanceThreshold.text + manager.timeThreshold = timeThreshold.text manager.savePreferences() stackView.pop() } |