From cf409b59ba3027537acf0ec36d2186e200ca8934 Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Tue, 3 Oct 2017 10:06:15 +0200 Subject: Planner settings ascend and descende rate: Wire up UI elements correctly Wire up the UI elements (QSpinBoxes) for ascend rates (4x) and descend rate (1x) correctly so that the profile and calculation is updated immediately after the value is changed (e.g. increased/decresed by 1) by clicking the QSpinBox arrows. Until now one had to click into the profile or change another planner preference first before the change became effective. Signed-off-by: Stefan Fuchs --- qt-models/diveplannermodel.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'qt-models/diveplannermodel.h') diff --git a/qt-models/diveplannermodel.h b/qt-models/diveplannermodel.h index aebeef766..43a1186d4 100644 --- a/qt-models/diveplannermodel.h +++ b/qt-models/diveplannermodel.h @@ -95,6 +95,11 @@ slots: void setMinSwitchDuration(int duration); void setSacFactor(double factor); void setProblemSolvingTime(int minutes); + void setAscrate75(int rate); + void setAscrate50(int rate); + void setAscratestops(int rate); + void setAscratelast6m(int rate); + void setDescrate(int rate); signals: void planCreated(); -- cgit v1.2.3-70-g09d2