diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-23 11:28:19 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-04-02 13:53:23 -0700 |
commit | 5196ea6149a3c98a7c4e2db9aad8944fec825928 (patch) | |
tree | 28072507af512a02c0372a3d56d35d181a2f3651 /qt-models/diveplannermodel.h | |
parent | 216a910f56687dfcbb7f806237cb563bd9441ccb (diff) | |
download | subsurface-5196ea6149a3c98a7c4e2db9aad8944fec825928.tar.gz |
cleanup: constify DivePlannerPoints model accessor functions
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/diveplannermodel.h')
-rw-r--r-- | qt-models/diveplannermodel.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/qt-models/diveplannermodel.h b/qt-models/diveplannermodel.h index 57c64f045..978ce818d 100644 --- a/qt-models/diveplannermodel.h +++ b/qt-models/diveplannermodel.h @@ -38,28 +38,28 @@ public: void cylinderRenumber(int mapping[]); void removeSelectedPoints(const QVector<int> &rows); void setPlanMode(Mode mode); - bool isPlanner(); + bool isPlanner() const; void createSimpleDive(); void clear(); Mode currentMode() const; bool setRecalc(bool recalc); - bool recalcQ(); - bool tankInUse(int cylinderid); + bool recalcQ() const; + bool tankInUse(int cylinderid) const; CylindersModel *cylindersModel(); - int ascrate75Display(); - int ascrate50Display(); - int ascratestopsDisplay(); - int ascratelast6mDisplay(); - int descrateDisplay(); - int getSurfacePressure(); + int ascrate75Display() const; + int ascrate50Display() const; + int ascratestopsDisplay() const; + int ascratelast6mDisplay() const; + int descrateDisplay() const; + int getSurfacePressure() const; /** * @return the row number. */ void editStop(int row, divedatapoint newData); - divedatapoint at(int row); - int size(); + divedatapoint at(int row) const; + int size() const; struct diveplan &getDiveplan(); void removeDeco(); static bool addingDeco; @@ -120,7 +120,7 @@ private: explicit DivePlannerPointsModel(QObject *parent = 0); void setupStartTime(); void setupCylinders(); - int lastEnteredPoint(); + int lastEnteredPoint() const; bool updateMaxDepth(); void createPlan(bool replanCopy); struct diveplan diveplan; |