summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Jeremie Guichard <djebrest@gmail.com>2018-04-04 08:18:29 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-04-04 14:10:45 +0300
commit12dc1889c704c6af9125d3ef3f0d2a1c1fe603f7 (patch)
tree8da754777ec401b96b482bde8873301ac5983761 /desktop-widgets
parent78986589f0f9bd32094a8de6cdb0d192a6935ebc (diff)
downloadsubsurface-12dc1889c704c6af9125d3ef3f0d2a1c1fe603f7.tar.gz
Add "Tags" column in Desktop app's dive list view
Add DiveItem::displayTags helper method to return Tags as a QString New Tags column is by default inserted before "Photos" column by default disabled Signed-off-by: Jeremie Guichard <djebrest@gmail.com>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/divelistview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop-widgets/divelistview.cpp b/desktop-widgets/divelistview.cpp
index 95e0e3fe9..0014c31f2 100644
--- a/desktop-widgets/divelistview.cpp
+++ b/desktop-widgets/divelistview.cpp
@@ -480,7 +480,8 @@ void DiveListView::reloadHeaderActions()
i == DiveTripModel::TOTALWEIGHT ||
i == DiveTripModel::SUIT ||
i == DiveTripModel::CYLINDER ||
- i == DiveTripModel::SAC);
+ i == DiveTripModel::SAC ||
+ i == DiveTripModel::TAGS);
bool shown = s.value(settingName, showHeaderFirstRun).toBool();
a->setCheckable(true);
a->setChecked(shown);