mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Move helper function to DiveObjectsHelper
As per Tomaz recomendation the helper functions from19588ce
ande072596
are moved from qmlmanager to DiveObjectsHelper. [Dirk Hohndel: merged with the latest code] Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4abe73ff2a
commit
9342dedb26
5 changed files with 34 additions and 42 deletions
|
@ -32,6 +32,8 @@ class DiveObjectHelper : public QObject {
|
|||
Q_PROPERTY(QString tripMeta READ tripMeta CONSTANT)
|
||||
Q_PROPERTY(QString maxcns READ maxcns CONSTANT)
|
||||
Q_PROPERTY(QString otu READ otu CONSTANT)
|
||||
Q_PROPERTY(QString sumWeight READ sumWeight CONSTANT)
|
||||
Q_PROPERTY(QString getCylinder READ getCylinder CONSTANT)
|
||||
public:
|
||||
DiveObjectHelper(struct dive *dive = NULL);
|
||||
~DiveObjectHelper();
|
||||
|
@ -62,6 +64,8 @@ public:
|
|||
QString tripMeta() const;
|
||||
QString maxcns() const;
|
||||
QString otu() const;
|
||||
QString sumWeight() const;
|
||||
QString getCylinder() const;
|
||||
|
||||
private:
|
||||
struct dive *m_dive;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue