mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add surge etc to printing template variables
Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
11eec0a503
commit
e7a18456c9
3 changed files with 20 additions and 0 deletions
|
|
@ -15,6 +15,10 @@ class DiveObjectHelper {
|
|||
Q_PROPERTY(int id MEMBER id CONSTANT)
|
||||
Q_PROPERTY(int rating MEMBER rating CONSTANT)
|
||||
Q_PROPERTY(int visibility MEMBER visibility CONSTANT)
|
||||
Q_PROPERTY(int wavesize MEMBER wavesize CONSTANT)
|
||||
Q_PROPERTY(int current MEMBER current CONSTANT)
|
||||
Q_PROPERTY(int surge MEMBER surge CONSTANT)
|
||||
Q_PROPERTY(int chill MEMBER chill CONSTANT)
|
||||
Q_PROPERTY(QString date READ date CONSTANT)
|
||||
Q_PROPERTY(QString time READ time CONSTANT)
|
||||
Q_PROPERTY(int timestamp MEMBER timestamp CONSTANT)
|
||||
|
|
@ -53,6 +57,10 @@ public:
|
|||
int id;
|
||||
int rating;
|
||||
int visibility;
|
||||
int wavesize;
|
||||
int current;
|
||||
int surge;
|
||||
int chill;
|
||||
QString date() const;
|
||||
timestamp_t timestamp;
|
||||
QString time() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue