From 415536aba9cc805c2ed2df2e6981820e2b0680b2 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 5 Jan 2016 06:59:04 -0800 Subject: QML UI: in dive details edit, put date on its own line This way we can support a simple way for the user to edit the date. Signed-off-by: Dirk Hohndel --- qt-mobile/qml/DiveDetailsEdit.qml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'qt-mobile/qml') diff --git a/qt-mobile/qml/DiveDetailsEdit.qml b/qt-mobile/qml/DiveDetailsEdit.qml index 9a639ddb7..25b10ba2a 100644 --- a/qt-mobile/qml/DiveDetailsEdit.qml +++ b/qt-mobile/qml/DiveDetailsEdit.qml @@ -7,6 +7,7 @@ import org.subsurfacedivelog.mobile 1.0 import org.kde.plasma.mobilecomponents 0.2 as MobileComponents Item { + property alias dateText: txtDate.text property alias locationText: txtLocation.text property string gpsText property alias airtempText: txtAirTemp.text @@ -33,9 +34,17 @@ Item { MobileComponents.Heading { Layout.columnSpan: 2 - text: "Dive " + number + " (" + date + ")" + text: "Dive " + number + } + MobileComponents.Label { + Layout.alignment: Qt.AlignRight + text: "Date:" + } + TextField { + id: txtDate; + text: date; + Layout.fillWidth: true } - MobileComponents.Label { Layout.alignment: Qt.AlignRight text: "Location:" -- cgit v1.2.3-70-g09d2