From 24472a3b232f49765fd5e5455a3c8c8fd4a7bac3 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 17 Jul 2014 08:03:52 -0700 Subject: Planner: correctly deal with units in Ascent/descent rates This adds two changes a) it uses rint() to make sure we don't truncate the displayed values b) it moves the update of the displayed values into a helper function that is also called whenever the settings change Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.h | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/diveplanner.h') diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h index dda7daed3..806b02cc2 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -169,6 +169,7 @@ slots: private: Ui::plannerSettingsWidget ui; + void updateUnitsUI(); }; QString dpGasToStr(const divedatapoint &p); -- cgit v1.2.3-70-g09d2