aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-01 00:23:15 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-01 00:55:25 -0800
commit2c28b16b26bd917670f84102d6535abf99a30d4d (patch)
tree6b9a4757e3f872f7656b6a4e089c7139d4be723b /qt-mobile/qml
parent7f628404e698b930cd47258daea4a481bc744c72 (diff)
downloadsubsurface-2c28b16b26bd917670f84102d6535abf99a30d4d.tar.gz
QML UI: handle editing of duration
I don't think these regular expressions are sufficiently exhaustive - but this is forward progress. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml')
-rw-r--r--qt-mobile/qml/DiveDetails.qml2
-rw-r--r--qt-mobile/qml/DiveDetailsEdit.qml11
2 files changed, 12 insertions, 1 deletions
diff --git a/qt-mobile/qml/DiveDetails.qml b/qt-mobile/qml/DiveDetails.qml
index 9d6e0b91d..4b0ee8e23 100644
--- a/qt-mobile/qml/DiveDetails.qml
+++ b/qt-mobile/qml/DiveDetails.qml
@@ -58,7 +58,7 @@ MobileComponents.Page {
detailsEdit.buddyText, detailsEdit.divemasterText, detailsEdit.notesText)
location = detailsEdit.locationText
// gps = detailsEdit.gps
- // duration = detailsEdit.durationText
+ duration = detailsEdit.durationText
// depth = detailsEdit.depthText
airtemp = detailsEdit.airtempText
watertemp = detailsEdit.watertempText
diff --git a/qt-mobile/qml/DiveDetailsEdit.qml b/qt-mobile/qml/DiveDetailsEdit.qml
index 4ed90cd2d..e77b3234a 100644
--- a/qt-mobile/qml/DiveDetailsEdit.qml
+++ b/qt-mobile/qml/DiveDetailsEdit.qml
@@ -15,6 +15,7 @@ Item {
property alias buddyText: txtBuddy.text
property alias divemasterText: txtDiveMaster.text
property alias notesText: txtNotes.text
+ property alias durationText: txtDuration.text
ColumnLayout {
anchors {
left: parent.left
@@ -50,6 +51,16 @@ Item {
MobileComponents.Label {
Layout.alignment: Qt.AlignRight
+ text: "Duration:"
+ }
+ TextField {
+ id: txtDuration
+ text: duration
+ Layout.fillWidth: true
+ }
+
+ MobileComponents.Label {
+ Layout.alignment: Qt.AlignRight
text: "Air Temp:"
}
TextField {