aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-01-23 11:18:41 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-04-02 13:53:23 -0700
commit216a910f56687dfcbb7f806237cb563bd9441ccb (patch)
treeed6aad7f491a8f6fc09ec613803696426c4d8920
parent8cd389c0afb422011e150ce8b72857ecdb19aa65 (diff)
downloadsubsurface-216a910f56687dfcbb7f806237cb563bd9441ccb.tar.gz
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 <bstoeger@mail.tuwien.ac.at>
-rw-r--r--qt-models/diveplannermodel.h4
1 files changed, 2 insertions, 2 deletions
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);