diff options
author | Jeremie Guichard <djebrest@gmail.com> | 2018-04-04 08:18:29 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-04-04 14:10:45 +0300 |
commit | 12dc1889c704c6af9125d3ef3f0d2a1c1fe603f7 (patch) | |
tree | 8da754777ec401b96b482bde8873301ac5983761 /qt-models/divetripmodel.h | |
parent | 78986589f0f9bd32094a8de6cdb0d192a6935ebc (diff) | |
download | subsurface-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 'qt-models/divetripmodel.h')
-rw-r--r-- | qt-models/divetripmodel.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-models/divetripmodel.h b/qt-models/divetripmodel.h index ec9b615b0..98dc5bca3 100644 --- a/qt-models/divetripmodel.h +++ b/qt-models/divetripmodel.h @@ -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, |