From 66184d58e8bda6e0e962a6a419458a7fcde18dd0 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 24 Oct 2018 21:14:33 +0100 Subject: 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 --- core/subsurface-qt/DiveObjectHelper.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core/subsurface-qt/DiveObjectHelper.h') 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; -- cgit v1.2.3-70-g09d2