From f6b09dd8c3077bd54ae31a22843857c52d930bd8 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 11 May 2020 07:15:48 -0700 Subject: [PATCH] mobile/dive-details: show tags So far the user can't edit them, but at least they are now shown as part of the dive details. Usage of tags varries widely, I've seen people who use a LOT of tags to classify their dives, so I'm giving this a complete row by itself. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveDetailsView.qml | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/mobile-widgets/qml/DiveDetailsView.qml b/mobile-widgets/qml/DiveDetailsView.qml index 73efbeec4..54e188fe9 100644 --- a/mobile-widgets/qml/DiveDetailsView.qml +++ b/mobile-widgets/qml/DiveDetailsView.qml @@ -514,6 +514,36 @@ Item { Layout.fillWidth: true } + // seventh row + //------------ + TemplateLabelSmall { + text: qsTr("Tags:") + opacity: 0.6 + wrapMode: Text.WrapAtWordBoundaryOrAnywhere + Layout.columnSpan: 3 + Layout.maximumWidth: detailsView.col2Width + detailsView.col3Width + Layout.bottomMargin: 0 + color: subsurfaceTheme.textColor + } + + // eighth row + //------------ + TemplateLabelSmall { + id: txtTags + text: tags + wrapMode: Text.WrapAtWordBoundaryOrAnywhere + Layout.columnSpan: 3 + color: subsurfaceTheme.textColor + } + + Rectangle { + color: subsurfaceTheme.primaryColor + height: 1 + opacity: 0.5 + Layout.columnSpan: 3 + Layout.fillWidth: true + } + // Notes on the bottom //--------------------