From 2c28b16b26bd917670f84102d6535abf99a30d4d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 1 Jan 2016 00:23:15 -0800 Subject: 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 --- qt-mobile/qml/DiveDetails.qml | 2 +- qt-mobile/qml/DiveDetailsEdit.qml | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'qt-mobile/qml') 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 @@ -48,6 +49,16 @@ Item { // (think of someone adding a dive while on the boat or // at the dive site) + 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:" -- cgit v1.2.3-70-g09d2