mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add functions to DiveObjectsHelper
This generated the QStringLists needed to populate the combobxes in DiveDetailsEdit. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6392bf83ab
commit
fcc370b2fe
2 changed files with 57 additions and 0 deletions
|
@ -42,6 +42,9 @@ class DiveObjectHelper : public QObject {
|
|||
Q_PROPERTY(QString startPressure READ startPressure CONSTANT)
|
||||
Q_PROPERTY(QString endPressure READ endPressure CONSTANT)
|
||||
Q_PROPERTY(QString firstGas READ firstGas CONSTANT)
|
||||
Q_PROPERTY(QStringList suitList READ suitList CONSTANT)
|
||||
Q_PROPERTY(QStringList buddyList READ buddyList CONSTANT)
|
||||
Q_PROPERTY(QStringList divemasterList READ divemasterList CONSTANT)
|
||||
public:
|
||||
DiveObjectHelper(struct dive *dive = NULL);
|
||||
~DiveObjectHelper();
|
||||
|
@ -81,6 +84,9 @@ public:
|
|||
QString startPressure() const;
|
||||
QString endPressure() const;
|
||||
QString firstGas() const;
|
||||
QStringList suitList() const;
|
||||
QStringList buddyList() const;
|
||||
QStringList divemasterList() const;
|
||||
|
||||
private:
|
||||
struct dive *m_dive;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue