summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-05-11 07:15:48 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-05-14 12:57:08 -0700
commitf6b09dd8c3077bd54ae31a22843857c52d930bd8 (patch)
tree820585b3b4745d89c571d13419e509688986764a /mobile-widgets
parent4db79c8db9453a28b5e26315baae7d1f5315b68a (diff)
downloadsubsurface-f6b09dd8c3077bd54ae31a22843857c52d930bd8.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DiveDetailsView.qml30
1 files changed, 30 insertions, 0 deletions
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
//--------------------