aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-07 14:59:52 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-07 14:59:52 -0800
commit3d7475b9645af3a28d80adf7fba0ab9cb80fc085 (patch)
tree829bc9be69925f1ce12c67c9b6f89031fedcea5f /qt-mobile
parent96470d7dbfaa330c46443049a951b1d3fe6783c2 (diff)
downloadsubsurface-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')
-rw-r--r--qt-mobile/qml/DiveDetailsView.qml11
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