mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
bdf990d40e
commit
2239ffe13c
2 changed files with 18 additions and 23 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue