mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
ebbef8cf17
commit
76e0208a11
3 changed files with 0 additions and 30 deletions
|
@ -40,7 +40,6 @@ Kirigami.Page {
|
||||||
property alias cylinderIndex3: detailsEdit.cylinderIndex3
|
property alias cylinderIndex3: detailsEdit.cylinderIndex3
|
||||||
property alias cylinderIndex4: detailsEdit.cylinderIndex4
|
property alias cylinderIndex4: detailsEdit.cylinderIndex4
|
||||||
property alias usedGas: detailsEdit.usedGas
|
property alias usedGas: detailsEdit.usedGas
|
||||||
property alias gpsCheckbox: detailsEdit.gpsCheckbox
|
|
||||||
property alias rating: detailsEdit.rating
|
property alias rating: detailsEdit.rating
|
||||||
property alias visibility: detailsEdit.visibility
|
property alias visibility: detailsEdit.visibility
|
||||||
property alias usedCyl: detailsEdit.usedCyl
|
property alias usedCyl: detailsEdit.usedCyl
|
||||||
|
@ -346,7 +345,6 @@ Kirigami.Page {
|
||||||
detailsEdit.locationText = locationText
|
detailsEdit.locationText = locationText
|
||||||
}
|
}
|
||||||
gps = modelData.gps
|
gps = modelData.gps
|
||||||
gpsCheckbox = false
|
|
||||||
duration = modelData.duration
|
duration = modelData.duration
|
||||||
depth = modelData.depth
|
depth = modelData.depth
|
||||||
airtemp = modelData.airTemp
|
airtemp = modelData.airTemp
|
||||||
|
|
|
@ -35,7 +35,6 @@ Item {
|
||||||
property var usedGas: []
|
property var usedGas: []
|
||||||
property var endpressure: []
|
property var endpressure: []
|
||||||
property var startpressure: []
|
property var startpressure: []
|
||||||
property alias gpsCheckbox: checkboxGPS.checked
|
|
||||||
property alias suitModel: suitBox.model
|
property alias suitModel: suitBox.model
|
||||||
property alias divemasterModel: divemasterBox.model
|
property alias divemasterModel: divemasterBox.model
|
||||||
property alias buddyModel: buddyBox.model
|
property alias buddyModel: buddyBox.model
|
||||||
|
@ -264,32 +263,6 @@ Item {
|
||||||
flickable: detailsEditFlickable
|
flickable: detailsEditFlickable
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
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 {
|
RowLayout {
|
||||||
width: Kirigami.Units.gridUnit * 20
|
width: Kirigami.Units.gridUnit * 20
|
||||||
TemplateLabelSmall {
|
TemplateLabelSmall {
|
||||||
|
|
|
@ -179,7 +179,6 @@ Kirigami.ApplicationWindow {
|
||||||
detailsWindow.usedGas = []
|
detailsWindow.usedGas = []
|
||||||
detailsWindow.startpressure = []
|
detailsWindow.startpressure = []
|
||||||
detailsWindow.endpressure = []
|
detailsWindow.endpressure = []
|
||||||
detailsWindow.gpsCheckbox = false
|
|
||||||
showPage(detailsWindow)
|
showPage(detailsWindow)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue