summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DiveDetails.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-15 05:17:39 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-15 13:22:16 -0700
commitc111c4bb022229e66fb15cf8a7967bf79180a441 (patch)
tree67a74a29b102ffd766fd97793d7e24385af0c569 /mobile-widgets/qml/DiveDetails.qml
parent00ac1c12db347d7a63c4c44a62f41b373cb84706 (diff)
downloadsubsurface-c111c4bb022229e66fb15cf8a7967bf79180a441.tar.gz
QML UI: add elements to allow editing the GPS coordinates
This isn't hooked up, yet, but provides the UI Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DiveDetails.qml')
-rw-r--r--mobile-widgets/qml/DiveDetails.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml
index c9d123d07..31fe8ce8d 100644
--- a/mobile-widgets/qml/DiveDetails.qml
+++ b/mobile-widgets/qml/DiveDetails.qml
@@ -20,12 +20,14 @@ Kirigami.Page {
property alias depth: detailsEdit.depthText
property alias duration: detailsEdit.durationText
property alias location: detailsEdit.locationText
+ property alias gps: detailsEdit.gpsText
property alias notes: detailsEdit.notesText
property alias suit: detailsEdit.suitText
property alias weight: detailsEdit.weightText
property alias startpressure: detailsEdit.startpressureText
property alias endpressure: detailsEdit.endpressureText
property alias gasmix: detailsEdit.gasmixText
+ property alias gpsCheckbox: detailsEdit.gpsCheckbox
property int updateCurrentIdx: manager.updateSelectedDive
property bool contentItem: true // HACK to work around Kirigami issue - remove once that's addressed upstream
@@ -144,6 +146,8 @@ Kirigami.Page {
number = diveDetailsListView.currentItem.modelData.dive.number
date = diveDetailsListView.currentItem.modelData.dive.date + " " + diveDetailsListView.currentItem.modelData.dive.time
location = diveDetailsListView.currentItem.modelData.dive.location
+ gps = diveDetailsListView.currentItem.modelData.dive.gps
+ gpsCheckbox = false
duration = diveDetailsListView.currentItem.modelData.dive.duration
depth = diveDetailsListView.currentItem.modelData.dive.depth
airtemp = diveDetailsListView.currentItem.modelData.dive.airTemp