mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Adds missing visibility to DiveObjectHelper, so it too can be used in print templates.
Signed-off-by: Tim Wootton <tim@tee-jay.org.uk> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
aa404b3469
commit
2cffb77d19
2 changed files with 7 additions and 0 deletions
|
@ -321,6 +321,11 @@ int DiveObjectHelper::rating() const
|
|||
return m_dive->rating;
|
||||
}
|
||||
|
||||
int DiveObjectHelper::visibility() const
|
||||
{
|
||||
return m_dive->visibility;
|
||||
}
|
||||
|
||||
QString DiveObjectHelper::sumWeight() const
|
||||
{
|
||||
weight_t sum = { 0 };
|
||||
|
|
|
@ -11,6 +11,7 @@ class DiveObjectHelper : public QObject {
|
|||
Q_PROPERTY(int number READ number CONSTANT)
|
||||
Q_PROPERTY(int id READ id CONSTANT)
|
||||
Q_PROPERTY(int rating READ rating CONSTANT)
|
||||
Q_PROPERTY(int visibility READ visibility CONSTANT)
|
||||
Q_PROPERTY(QString date READ date CONSTANT)
|
||||
Q_PROPERTY(QString time READ time CONSTANT)
|
||||
Q_PROPERTY(int timestamp READ timestamp CONSTANT)
|
||||
|
@ -51,6 +52,7 @@ public:
|
|||
int number() const;
|
||||
int id() const;
|
||||
int rating() const;
|
||||
int visibility() const;
|
||||
QString date() const;
|
||||
timestamp_t timestamp() const;
|
||||
QString time() const;
|
||||
|
|
Loading…
Add table
Reference in a new issue