diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2021-09-11 13:42:16 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-09-13 11:21:34 -0700 |
commit | 76e0208a11bca0f45b7c88fd48240d53fd652d7a (patch) | |
tree | b766130ea70f81c02739ec203ab236b9935b417c | |
parent | ebbef8cf17f85bbdbd9027d93ba174ab0060feea (diff) | |
download | subsurface-76e0208a11bca0f45b7c88fd48240d53fd652d7a.tar.gz |
mobile: remove current location checkbox from dive edit
Since we no longer access the device location, we can't do that any longer,
either.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | mobile-widgets/qml/DiveDetails.qml | 2 | ||||
-rw-r--r-- | mobile-widgets/qml/DiveDetailsEdit.qml | 27 | ||||
-rw-r--r-- | mobile-widgets/qml/main.qml | 1 |
3 files changed, 0 insertions, 30 deletions
diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml index c5edfb8b7..8debd6c49 100644 --- a/mobile-widgets/qml/DiveDetails.qml +++ b/mobile-widgets/qml/DiveDetails.qml @@ -40,7 +40,6 @@ Kirigami.Page { property alias cylinderIndex3: detailsEdit.cylinderIndex3 property alias cylinderIndex4: detailsEdit.cylinderIndex4 property alias usedGas: detailsEdit.usedGas - property alias gpsCheckbox: detailsEdit.gpsCheckbox property alias rating: detailsEdit.rating property alias visibility: detailsEdit.visibility property alias usedCyl: detailsEdit.usedCyl @@ -346,7 +345,6 @@ Kirigami.Page { detailsEdit.locationText = locationText } gps = modelData.gps - gpsCheckbox = false duration = modelData.duration depth = modelData.depth airtemp = modelData.airTemp diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml index 5c9b99b02..d69247da4 100644 --- a/mobile-widgets/qml/DiveDetailsEdit.qml +++ b/mobile-widgets/qml/DiveDetailsEdit.qml @@ -35,7 +35,6 @@ Item { property var usedGas: [] property var endpressure: [] property var startpressure: [] - property alias gpsCheckbox: checkboxGPS.checked property alias suitModel: suitBox.model property alias divemasterModel: divemasterBox.model property alias buddyModel: buddyBox.model @@ -265,32 +264,6 @@ Item { } } RowLayout { - width: manager.locationServiceAvailable ? Kirigami.Units.gridUnit * 12 : 0 - TemplateLabelSmall { - Layout.preferredWidth: Kirigami.Units.gridUnit * 6 - horizontalAlignment: Text.AlignRight - text: qsTr("Use current\nGPS location:") - visible: manager.locationServiceAvailable - } - TemplateCheckBox { - Layout.preferredWidth: Kirigami.Units.gridUnit * 6 - id: checkboxGPS - visible: manager.locationServiceAvailable - onCheckedChanged: { - if (checked) - gpsText = manager.getCurrentPosition() - } - } - } - - Connections { - target: manager - onWaitingForPositionChanged: { - gpsText = manager.getCurrentPosition() - manager.appendTextToLog("received updated position info " + gpsText) - } - } - RowLayout { width: Kirigami.Units.gridUnit * 20 TemplateLabelSmall { Layout.preferredWidth: Kirigami.Units.gridUnit * 4 diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 790fb5809..d775ab685 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -179,7 +179,6 @@ Kirigami.ApplicationWindow { detailsWindow.usedGas = [] detailsWindow.startpressure = [] detailsWindow.endpressure = [] - detailsWindow.gpsCheckbox = false showPage(detailsWindow) } |