From 3d7475b9645af3a28d80adf7fba0ab9cb80fc085 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 7 Dec 2015 14:59:52 -0800 Subject: QML-UI: add dive date to the detail view That one really bugged me... Signed-off-by: Dirk Hohndel --- qt-mobile/qml/DiveDetailsView.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'qt-mobile/qml/DiveDetailsView.qml') diff --git a/qt-mobile/qml/DiveDetailsView.qml b/qt-mobile/qml/DiveDetailsView.qml index 75c17c3ad..ce7f2485e 100644 --- a/qt-mobile/qml/DiveDetailsView.qml +++ b/qt-mobile/qml/DiveDetailsView.qml @@ -30,6 +30,17 @@ GridLayout { Layout.columnSpan: 4 wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere } + MobileComponents.Label { + Layout.alignment: Qt.AlignRight + id: dateLabel + text: "Date: " + opacity: 0.6 + } + MobileComponents.Label { + text: date + Layout.minimumWidth: Math.max(MobileComponents.Units.gridUnit * 4, paintedWidth) // helps vertical alignment throughout listview + Layout.columnSpan: 3 + } MobileComponents.Label { Layout.alignment: Qt.AlignRight -- cgit v1.2.3-70-g09d2