diff options
author | jan Iversen <jan@casacondor.com> | 2019-12-13 08:57:31 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-24 06:30:57 +0900 |
commit | fb5a67e16a0c76b92b5061e4ffe4e4b65d30a595 (patch) | |
tree | 78852cb1644ad8f052c52a3fb3d2e1459a04c0f9 /desktop-widgets/diveplanner.cpp | |
parent | dc713000ffe7dd47fe9c989d5ddc41574b3be1c3 (diff) | |
download | subsurface-fb5a67e16a0c76b92b5061e4ffe4e4b65d30a595.tar.gz |
diveplanner: desktop, connect signals direct to plannerShared
Connect the signals for ascent/descent directly to plannerShared
Signed-off-by: Jan Iversen <jan@casacondor.com>
Diffstat (limited to 'desktop-widgets/diveplanner.cpp')
-rw-r--r-- | desktop-widgets/diveplanner.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/desktop-widgets/diveplanner.cpp b/desktop-widgets/diveplanner.cpp index c471c0496..a5d0c7ae4 100644 --- a/desktop-widgets/diveplanner.cpp +++ b/desktop-widgets/diveplanner.cpp @@ -510,11 +510,11 @@ PlannerSettingsWidget::PlannerSettingsWidget(QWidget *parent, Qt::WindowFlags f) connect(ui.o2narcotic, SIGNAL(toggled(bool)), CylindersModel::instance(), SLOT(updateBestMixes())); connect(modeMapper, SIGNAL(mapped(int)), this, SLOT(disableDecoElements(int))); - connect(ui.ascRate75, SIGNAL(valueChanged(int)), this, SLOT(setAscrate75(int))); - connect(ui.ascRate50, SIGNAL(valueChanged(int)), this, SLOT(setAscrate50(int))); - connect(ui.descRate, SIGNAL(valueChanged(int)), this, SLOT(setDescrate(int))); - connect(ui.ascRateStops, SIGNAL(valueChanged(int)), this, SLOT(setAscratestops(int))); - connect(ui.ascRateLast6m, SIGNAL(valueChanged(int)), this, SLOT(setAscratelast6m(int))); + connect(ui.ascRate75, SIGNAL(valueChanged(int)), plannerShared::instance(), SLOT(set_ascrate75(int))); + connect(ui.ascRate50, SIGNAL(valueChanged(int)), plannerShared::instance(), SLOT(set_ascrate50(int))); + connect(ui.descRate, SIGNAL(valueChanged(int)), plannerShared::instance(), SLOT(set_descrate(int))); + connect(ui.ascRateStops, SIGNAL(valueChanged(int)), plannerShared::instance(), SLOT(set_ascratestops(int))); + connect(ui.ascRateLast6m, SIGNAL(valueChanged(int)), plannerShared::instance(), SLOT(set_ascratelast6m(int))); connect(ui.sacfactor, SIGNAL(valueChanged(double)), this, SLOT(sacFactorChanged(double))); connect(ui.problemsolvingtime, SIGNAL(valueChanged(int)), this, SLOT(problemSolvingTimeChanged(int))); connect(ui.bottompo2, SIGNAL(valueChanged(double)), this, SLOT(setBottomPo2(double))); |