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>
This commit is contained in:
Jeremie Guichard 2018-04-04 08:18:29 +02:00 committed by Lubomir I. Ivanov
parent 78986589f0
commit 12dc1889c7
4 changed files with 33 additions and 1 deletions

View file

@ -23,6 +23,7 @@ public:
SAC,
OTU,
MAXCNS,
TAGS,
PHOTOS,
COUNTRY,
LOCATION,
@ -43,6 +44,7 @@ public:
QString displayWeightWithUnit() const;
QString displaySac() const;
QString displaySacWithUnit() const;
QString displayTags() const;
int countPhotos(dive *dive) const;
int weight() const;
QString icon_names[4];
@ -72,6 +74,7 @@ public:
SAC,
OTU,
MAXCNS,
TAGS,
PHOTOS,
COUNTRY,
LOCATION,