mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
dc37ba7758
commit
bf8261c001
7 changed files with 178 additions and 156 deletions
19
core/string-format.h
Normal file
19
core/string-format.h
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue