diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-08-19 11:13:55 -0500 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-19 11:36:54 -0500 |
commit | 6ed189f32c466f99167ab6657264a45da4b56e8e (patch) | |
tree | 659c97401ad49daf996fb04b397897bb2669a3f3 /qt-ui/diveplanner.h | |
parent | 150676ce3df0f60bd99204886c3a4e458253c093 (diff) | |
download | subsurface-6ed189f32c466f99167ab6657264a45da4b56e8e.tar.gz |
Planner: bring sanity to the SAC rate handling
The old implementation was... let's call it creative.
This tries to actually get things right instead of using magic.
Don't pretend that double values are ints.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r-- | qt-ui/diveplanner.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h index 22c599ab1..468893bba 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -70,8 +70,8 @@ slots: void triggerGFLow(); void setSurfacePressure(int pressure); int getSurfacePressure(); - void setBottomSac(int sac); - void setDecoSac(int sac); + void setBottomSac(double sac); + void setDecoSac(double sac); void setStartTime(const QTime &t); void setStartDate(const QDate &date); void setLastStop6m(bool value); @@ -160,8 +160,8 @@ public slots: void settingsChanged(); void atmPressureChanged(const QString &pressure); - void bottomSacChanged(const int bottomSac); - void decoSacChanged(const int decosac); + void bottomSacChanged(const double bottomSac); + void decoSacChanged(const double decosac); void printDecoPlan(); void setAscRate75(int rate); void setAscRate50(int rate); |