aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/templatelayout.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-12-13 13:05:30 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-17 13:03:56 -0800
commit2239ffe13c1babcae7a0822c83ab8d0f23317358 (patch)
treea10a0f3959c5fe1fd96e9f4c8df42b223cde2ed1 /desktop-widgets/templatelayout.h
parentbdf990d40eaeb5f329dfbd67a7e64187538de9f9 (diff)
downloadsubsurface-2239ffe13c1babcae7a0822c83ab8d0f23317358.tar.gz
printing: remove YearInfo structure
This is a wrapper around "stats *" used to pass statistics through Qt's weird metatype system. Not needed anymore. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/templatelayout.h')
-rw-r--r--desktop-widgets/templatelayout.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/desktop-widgets/templatelayout.h b/desktop-widgets/templatelayout.h
index 2f2c728d6..e1c51eb0c 100644
--- a/desktop-widgets/templatelayout.h
+++ b/desktop-widgets/templatelayout.h
@@ -24,10 +24,6 @@ struct token {
extern QList<QString> grantlee_templates, grantlee_statistics_templates;
-struct YearInfo {
- stats_t *year;
-};
-
class TemplateLayout : public QObject {
Q_OBJECT
public:
@@ -40,11 +36,11 @@ public:
private:
struct State {
QList<DiveObjectHelperGrantlee> dives;
- QList<YearInfo> years;
+ QList<stats_t *> years;
QMap<QString, QString> types;
int forloopiterator = -1;
const DiveObjectHelperGrantlee *currentDive = nullptr;
- const YearInfo *currentYear = nullptr;
+ const stats_t * const *currentYear = nullptr;
const QString *currentCylinder = nullptr;
const CylinderObjectHelper *currentCylinderObject = nullptr;
};