diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-12-15 15:33:39 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-12-17 13:03:56 -0800 |
commit | ae182c386b0b1b58ab25fc1fbc18c3618062e57f (patch) | |
tree | 87c5d94a0f795b969233750b83fb22320ff53389 /core/string-format.h | |
parent | d9942269a9b61bc35bd939b23858a7cb4a2515c3 (diff) | |
download | subsurface-ae182c386b0b1b58ab25fc1fbc18c3618062e57f.tar.gz |
printing: remove DiveObjectHelper from printing code
At this point (post grantlee), DiveObjectHelper is just pointless
glue code. Let's remove it from the printing code and call the
formatting functions directly. If necessary, move these functions
to core/string-format.cpp.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/string-format.h')
-rw-r--r-- | core/string-format.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/string-format.h b/core/string-format.h index cbe6336db..12f36bd11 100644 --- a/core/string-format.h +++ b/core/string-format.h @@ -14,7 +14,15 @@ QStringList formatGetCylinder(const dive *d); QStringList formatStartPressure(const dive *d); QStringList formatEndPressure(const dive *d); QStringList formatFirstGas(const dive *d); +QString formatGas(const dive *d); QStringList formatFullCylinderList(); QStringList formatCylinders(const dive *d); +QString formatSumWeight(const dive *d); +QString formatWeightList(const dive *d); +QStringList formatWeights(const dive *d); +QString formatDiveDuration(const dive *d); +QString formatDiveGPS(const dive *d); +QString formatDiveDate(const dive *d); +QString formatDiveTime(const dive *d); #endif |