diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-12-14 22:42:07 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-12-17 13:03:56 -0800 |
commit | bf8261c0014253634eaddf7c0a9cf79d3a8b4123 (patch) | |
tree | e74ca215dbf25cf311e958875863da8037e0eee3 /core/string-format.h | |
parent | dc37ba7758a34fb9d5dd840d41902621030fec32 (diff) | |
download | subsurface-bf8261c0014253634eaddf7c0a9cf79d3a8b4123.tar.gz |
core: create string-format.cpp source file
The mobile version of the list used string formatting functions
defined in DiveObjectHelper and declared in mobilelistmodels.h.
Very confusing. Move them to a separate source file where - in
the long run - all the string-formatting functions, which
are scattered all over the place, can be collected.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/string-format.h')
-rw-r--r-- | core/string-format.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/core/string-format.h b/core/string-format.h new file mode 100644 index 000000000..96a9638e4 --- /dev/null +++ b/core/string-format.h @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: GPL-2.0 +// Various functions that format data into QStrings or QStringLists +#ifndef STRING_FORMAT_H +#define STRING_FORMAT_H + +#include <QStringList> + +struct dive; + +QString formatSac(const dive *d); +QString formatNotes(const dive *d); +QString format_gps_decimal(const dive *d); +QStringList formatGetCylinder(const dive *d); +QStringList formatStartPressure(const dive *d); +QStringList formatEndPressure(const dive *d); +QStringList formatFirstGas(const dive *d); +QStringList formatFullCylinderList(); + +#endif |