diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-12-07 14:59:52 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-12-07 14:59:52 -0800 |
commit | 3d7475b9645af3a28d80adf7fba0ab9cb80fc085 (patch) | |
tree | 829bc9be69925f1ce12c67c9b6f89031fedcea5f /qt-mobile/qml/DiveDetailsView.qml | |
parent | 96470d7dbfaa330c46443049a951b1d3fe6783c2 (diff) | |
download | subsurface-3d7475b9645af3a28d80adf7fba0ab9cb80fc085.tar.gz |
QML-UI: add dive date to the detail view
That one really bugged me...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/DiveDetailsView.qml')
-rw-r--r-- | qt-mobile/qml/DiveDetailsView.qml | 11 |
1 files changed, 11 insertions, 0 deletions
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 |