From cd3c2266f9f687746770912bfc913c4f94bb124b Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Wed, 8 Jan 2020 12:06:23 +0100 Subject: dive planner: correct bottomsac/decosac calc. Move conversion cuft <-> liter from desktop-widget/diveplanner.cpp to plannerShared, to facilitate the same results in mobile diveplanner Use Backend for bottomsac/decosac and update to check for switch LITER <-> CUFT Add bottomsac/decosac to QMLinterface. Signed-off-by: jan Iversen --- desktop-widgets/diveplanner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop-widgets/diveplanner.cpp') diff --git a/desktop-widgets/diveplanner.cpp b/desktop-widgets/diveplanner.cpp index 62334afbe..f236ec205 100644 --- a/desktop-widgets/diveplanner.cpp +++ b/desktop-widgets/diveplanner.cpp @@ -554,8 +554,8 @@ void PlannerSettingsWidget::settingsChanged() ui.bottomSAC->setSingleStep(0.1); ui.decoStopSAC->setDecimals(2); ui.decoStopSAC->setSingleStep(0.1); - ui.bottomSAC->setValue(ml_to_cuft(prefs.bottomsac)); - ui.decoStopSAC->setValue(ml_to_cuft(prefs.decosac)); + ui.bottomSAC->setValue(plannerShared::bottomsac()); + ui.decoStopSAC->setValue(plannerShared::decosac()); } else { ui.bottomSAC->setSuffix(tr("ℓ/min")); ui.decoStopSAC->setSuffix(tr("ℓ/min")); -- cgit v1.2.3-70-g09d2