diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-10-24 21:14:33 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-25 23:24:22 +0100 |
commit | 66184d58e8bda6e0e962a6a419458a7fcde18dd0 (patch) | |
tree | cdc0b1ae1a641f8febec21690e9461acbf357afb /core/subsurface-qt/DiveObjectHelper.h | |
parent | 583d8d653a4d6becf1c695e6f924cfc81ef7fb39 (diff) | |
download | subsurface-66184d58e8bda6e0e962a6a419458a7fcde18dd0.tar.gz |
core: add ability to get underlying dive to DiveObjectHelper
This feels a bit like cheating, but if we need to be able to make modifications
to the underlying dive and only have the helper object (for example inside of a
view model), doing everything through the helper object can turn into a real
performance issue.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/subsurface-qt/DiveObjectHelper.h')
-rw-r--r-- | core/subsurface-qt/DiveObjectHelper.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/subsurface-qt/DiveObjectHelper.h b/core/subsurface-qt/DiveObjectHelper.h index 0abdf8e5a..1070b855e 100644 --- a/core/subsurface-qt/DiveObjectHelper.h +++ b/core/subsurface-qt/DiveObjectHelper.h @@ -56,6 +56,7 @@ public: ~DiveObjectHelper(); int number() const; int id() const; + struct dive *getDive() const; int rating() const; int visibility() const; QString date() const; |