From 6ed189f32c466f99167ab6657264a45da4b56e8e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 19 Aug 2014 11:13:55 -0500 Subject: 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 --- qt-ui/diveplanner.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'qt-ui/diveplanner.h') 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); -- cgit v1.2.3-70-g09d2