From 216a910f56687dfcbb7f806237cb563bd9441ccb Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 23 Jan 2021 11:18:41 +0100 Subject: planner: unslotify two functions in DivePlannerPointsModel There are a few more candidates, but these conceptually really shouldn't be slots. getSurfacePressure() is an accessor and loadFromDive() initializes the model with a dive. Signed-off-by: Berthold Stoeger --- qt-models/diveplannermodel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-models') diff --git a/qt-models/diveplannermodel.h b/qt-models/diveplannermodel.h index 0a51a240b..57c64f045 100644 --- a/qt-models/diveplannermodel.h +++ b/qt-models/diveplannermodel.h @@ -52,6 +52,7 @@ public: int ascratestopsDisplay(); int ascratelast6mDisplay(); int descrateDisplay(); + int getSurfacePressure(); /** * @return the row number. @@ -64,6 +65,7 @@ public: static bool addingDeco; struct deco_state final_deco_state; + void loadFromDive(dive *d); public slots: int addStop(int millimeters = 0, int seconds = 0, int cylinderid_in = -1, int ccpoint = 0, bool entered = true, enum divemode_t = UNDEF_COMP_TYPE); @@ -73,7 +75,6 @@ slots: void setVpmbConservatism(int level); void setSurfacePressure(int pressure); void setSalinity(int salinity); - int getSurfacePressure(); void setBottomSac(double sac); void setDecoSac(double sac); void setStartTime(const QTime &t); @@ -93,7 +94,6 @@ slots: void cancelPlan(); void createTemporaryPlan(); void deleteTemporaryPlan(); - void loadFromDive(dive *d); void emitDataChanged(); void setRebreatherMode(int mode); void setReserveGas(int reserve); -- cgit v1.2.3-70-g09d2