diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-04-15 05:17:39 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-04-15 13:22:16 -0700 |
commit | c111c4bb022229e66fb15cf8a7967bf79180a441 (patch) | |
tree | 67a74a29b102ffd766fd97793d7e24385af0c569 /mobile-widgets/qml/DiveDetailsEdit.qml | |
parent | 00ac1c12db347d7a63c4c44a62f41b373cb84706 (diff) | |
download | subsurface-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/DiveDetailsEdit.qml')
-rw-r--r-- | mobile-widgets/qml/DiveDetailsEdit.qml | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml index 5672cdae6..3e32a2ac9 100644 --- a/mobile-widgets/qml/DiveDetailsEdit.qml +++ b/mobile-widgets/qml/DiveDetailsEdit.qml @@ -12,7 +12,7 @@ Item { property int number property alias dateText: txtDate.text property alias locationText: txtLocation.text - property string gpsText + property alias gpsText: txtGps.text property alias airtempText: txtAirTemp.text property alias watertempText: txtWaterTemp.text property alias suitText: txtSuit.text @@ -25,6 +25,7 @@ Item { property alias startpressureText: txtStartPressure.text property alias endpressureText: txtEndPressure.text property alias gasmixText: txtGasMix.text + property alias gpsCheckbox: checkboxGPS.checked function saveData() { // apply the changes to the dive_table @@ -89,10 +90,15 @@ Item { Layout.fillWidth: true } - // we should add a checkbox here that allows the user - // to add the current location as the dive location - // (think of someone adding a dive while on the boat or - // at the dive site) + Kirigami.Label { + Layout.alignment: Qt.AlignRight + text: "Coordinates:" + } + StyledTextField { + id: txtGps + Layout.fillWidth: true + } + Kirigami.Label { Layout.alignment: Qt.AlignRight text: "Use current\nGPS location:" |