diff options
author | Tim Wootton <tim@tee-jay.org.uk> | 2016-07-16 09:59:05 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-07-23 10:49:19 +0900 |
commit | 2cffb77d19e6ed7f3f5b26db8b68490159486f93 (patch) | |
tree | e6fc40016d2e4f3344734617583875090e638f9f /core/subsurface-qt/DiveObjectHelper.cpp | |
parent | aa404b3469a2ca74665107a03e8560163b9e7c75 (diff) | |
download | subsurface-2cffb77d19e6ed7f3f5b26db8b68490159486f93.tar.gz |
Adds missing visibility to DiveObjectHelper, so it too can be used in print templates.
Signed-off-by: Tim Wootton <tim@tee-jay.org.uk>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/subsurface-qt/DiveObjectHelper.cpp')
-rw-r--r-- | core/subsurface-qt/DiveObjectHelper.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/subsurface-qt/DiveObjectHelper.cpp b/core/subsurface-qt/DiveObjectHelper.cpp index e71b0764e..fc406d600 100644 --- a/core/subsurface-qt/DiveObjectHelper.cpp +++ b/core/subsurface-qt/DiveObjectHelper.cpp @@ -321,6 +321,11 @@ int DiveObjectHelper::rating() const return m_dive->rating; } +int DiveObjectHelper::visibility() const +{ + return m_dive->visibility; +} + QString DiveObjectHelper::sumWeight() const { weight_t sum = { 0 }; |