summaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt/diveobjecthelper.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-12-14 23:21:58 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-17 13:03:56 -0800
commitd9942269a9b61bc35bd939b23858a7cb4a2515c3 (patch)
tree92a60687efdfbd89df1aa29d7a105487c3db16d3 /core/subsurface-qt/diveobjecthelper.h
parentbf8261c0014253634eaddf7c0a9cf79d3a8b4123 (diff)
downloadsubsurface-d9942269a9b61bc35bd939b23858a7cb4a2515c3.tar.gz
printing: remove DiveObjectHelperGrantlee
This was a weird helper object, needed for grantlee. Instead of storing this object, loop over cylinders and dives directly. The actual accessor function is unchanged and now generates a DiveObjectHelper or DiveCylinderHelper for every variable access. Obviously, this is very inefficient. However, this will be replaced in future commits by direct calls to formatting functions. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/subsurface-qt/diveobjecthelper.h')
-rw-r--r--core/subsurface-qt/diveobjecthelper.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/core/subsurface-qt/diveobjecthelper.h b/core/subsurface-qt/diveobjecthelper.h
index a1fddd1c8..b76a9930f 100644
--- a/core/subsurface-qt/diveobjecthelper.h
+++ b/core/subsurface-qt/diveobjecthelper.h
@@ -96,20 +96,6 @@ public:
QString waterType;
};
-// This is an extended version of DiveObjectHelper that also keeps track of cylinder data.
-// It is used by grantlee to display structured cylinder data.
-// Note: this grantlee feature is undocumented. If there turns out to be no users, we might
-// want to remove this class.
-class DiveObjectHelperGrantlee : public DiveObjectHelper {
- Q_GADGET
- Q_PROPERTY(QVector<CylinderObjectHelper> cylinderObjects MEMBER cylinderObjects CONSTANT)
-public:
- DiveObjectHelperGrantlee();
- DiveObjectHelperGrantlee(const struct dive *dive);
- QVector<CylinderObjectHelper> cylinderObjects;
-};
-
Q_DECLARE_METATYPE(DiveObjectHelper)
-Q_DECLARE_METATYPE(DiveObjectHelperGrantlee)
#endif