diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-06-02 12:36:05 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-02 12:40:36 -0700 |
commit | cc012c1fa6ffca2c5c93fb79415b9a806cb3632c (patch) | |
tree | 11e22c7c28ad2d90a81c174c96a0d3e63c286041 /qt-ui/diveplanner.h | |
parent | 5bead467d7bf5d2249b3fc37647f8ff420d70792 (diff) | |
download | subsurface-cc012c1fa6ffca2c5c93fb79415b9a806cb3632c.tar.gz |
Fix addStop to work as slot again
In order to call this as slot it needs to have defaults for all arguments.
So we need to change the gasmix into a pointer - which is actually better
as this allows to easily pass a NULL pointer when we want to continue to
use the previous gas.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r-- | qt-ui/diveplanner.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h index 526e1c5fd..a26038b2f 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -64,7 +64,7 @@ public: public slots: - int addStop(int millimeters, int seconds, struct gasmix gas, int ccpoint, bool entered, bool usePrevious = false); + int addStop(int millimeters = 0, int seconds = 0, struct gasmix *gas = 0, int ccpoint = 0, bool entered = true); void addCylinder_clicked(); void setGFHigh(const int gfhigh); void setGFLow(const int ghflow); |