From 8cd4255a28a4251d2f75900970611ce48db5ab65 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sat, 15 Oct 2016 19:52:17 +0200 Subject: Test planner settings Plus: fix a typo. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- core/subsurface-qt/SettingsObjectWrapper.cpp | 2 +- core/subsurface-qt/SettingsObjectWrapper.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'core/subsurface-qt') diff --git a/core/subsurface-qt/SettingsObjectWrapper.cpp b/core/subsurface-qt/SettingsObjectWrapper.cpp index 8303afa8a..29b104349 100644 --- a/core/subsurface-qt/SettingsObjectWrapper.cpp +++ b/core/subsurface-qt/SettingsObjectWrapper.cpp @@ -1495,7 +1495,7 @@ void DivePlannerSettings::setBottomSac(int value) emit bottomSacChanged(value); } -void DivePlannerSettings::setSecoSac(int value) +void DivePlannerSettings::setDecoSac(int value) { if (value == prefs.decosac) return; diff --git a/core/subsurface-qt/SettingsObjectWrapper.h b/core/subsurface-qt/SettingsObjectWrapper.h index 8fd164f89..eeec3ab61 100644 --- a/core/subsurface-qt/SettingsObjectWrapper.h +++ b/core/subsurface-qt/SettingsObjectWrapper.h @@ -403,7 +403,7 @@ class DivePlannerSettings : public QObject { Q_PROPERTY(int reserve_gas READ reserveGas WRITE setReserveGas NOTIFY reserveGasChanged) Q_PROPERTY(int min_switch_duration READ minSwitchDuration WRITE setMinSwitchDuration NOTIFY minSwitchDurationChanged) Q_PROPERTY(int bottomsac READ bottomSac WRITE setBottomSac NOTIFY bottomSacChanged) - Q_PROPERTY(int decosac READ decoSac WRITE setSecoSac NOTIFY decoSacChanged) + Q_PROPERTY(int decosac READ decoSac WRITE setDecoSac NOTIFY decoSacChanged) Q_PROPERTY(deco_mode decoMode READ decoMode WRITE setDecoMode NOTIFY decoModeChanged) public: @@ -452,7 +452,7 @@ public slots: void setReserveGas(int value); void setMinSwitchDuration(int value); void setBottomSac(int value); - void setSecoSac(int value); + void setDecoSac(int value); void setDecoMode(deco_mode value); signals: -- cgit v1.2.3-70-g09d2