mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 01:03:24 +00:00
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>
This commit is contained in:
parent
8cd389c0af
commit
216a910f56
1 changed files with 2 additions and 2 deletions
|
@ -52,6 +52,7 @@ public:
|
||||||
int ascratestopsDisplay();
|
int ascratestopsDisplay();
|
||||||
int ascratelast6mDisplay();
|
int ascratelast6mDisplay();
|
||||||
int descrateDisplay();
|
int descrateDisplay();
|
||||||
|
int getSurfacePressure();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the row number.
|
* @return the row number.
|
||||||
|
@ -64,6 +65,7 @@ public:
|
||||||
static bool addingDeco;
|
static bool addingDeco;
|
||||||
struct deco_state final_deco_state;
|
struct deco_state final_deco_state;
|
||||||
|
|
||||||
|
void loadFromDive(dive *d);
|
||||||
public
|
public
|
||||||
slots:
|
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);
|
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 setVpmbConservatism(int level);
|
||||||
void setSurfacePressure(int pressure);
|
void setSurfacePressure(int pressure);
|
||||||
void setSalinity(int salinity);
|
void setSalinity(int salinity);
|
||||||
int getSurfacePressure();
|
|
||||||
void setBottomSac(double sac);
|
void setBottomSac(double sac);
|
||||||
void setDecoSac(double sac);
|
void setDecoSac(double sac);
|
||||||
void setStartTime(const QTime &t);
|
void setStartTime(const QTime &t);
|
||||||
|
@ -93,7 +94,6 @@ slots:
|
||||||
void cancelPlan();
|
void cancelPlan();
|
||||||
void createTemporaryPlan();
|
void createTemporaryPlan();
|
||||||
void deleteTemporaryPlan();
|
void deleteTemporaryPlan();
|
||||||
void loadFromDive(dive *d);
|
|
||||||
void emitDataChanged();
|
void emitDataChanged();
|
||||||
void setRebreatherMode(int mode);
|
void setRebreatherMode(int mode);
|
||||||
void setReserveGas(int reserve);
|
void setReserveGas(int reserve);
|
||||||
|
|
Loading…
Add table
Reference in a new issue