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>
This commit is contained in:
Berthold Stoeger 2020-12-13 13:05:30 +01:00 committed by Dirk Hohndel
parent bdf990d40e
commit 2239ffe13c
2 changed files with 18 additions and 23 deletions

View file

@ -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;
};