mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Mobile: move tripNrDive from DiveObjectHelper to DiveListModel
We don't want to generate a DiveObjectHelper numerous times for every item in the dive list. Therefore, return this datum directly from the model. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
1b9581369a
commit
54720e6cff
5 changed files with 6 additions and 11 deletions
|
@ -40,7 +40,6 @@ class DiveObjectHelper : public QObject {
|
|||
Q_PROPERTY(QStringList cylinderList READ cylinderList CONSTANT)
|
||||
Q_PROPERTY(QStringList cylinders READ cylinders CONSTANT)
|
||||
Q_PROPERTY(QVector<CylinderObjectHelper> cylinderObjects READ cylinderObjects CONSTANT)
|
||||
Q_PROPERTY(int tripNrDives READ tripNrDives CONSTANT)
|
||||
Q_PROPERTY(int maxcns READ maxcns CONSTANT)
|
||||
Q_PROPERTY(int otu READ otu CONSTANT)
|
||||
Q_PROPERTY(QString sumWeight READ sumWeight CONSTANT)
|
||||
|
@ -82,7 +81,6 @@ public:
|
|||
QStringList cylinders() const;
|
||||
QString cylinder(int idx) const;
|
||||
QVector<CylinderObjectHelper> cylinderObjects() const;
|
||||
int tripNrDives() const;
|
||||
int maxcns() const;
|
||||
int otu() const;
|
||||
QString sumWeight() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue