diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-07-17 08:03:52 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-17 08:06:15 -0700 |
commit | 24472a3b232f49765fd5e5455a3c8c8fd4a7bac3 (patch) | |
tree | 10e0a4fdb35a94a4d0115f80f08598428c71cda8 /qt-ui/diveplanner.h | |
parent | 13b8680b0ce2412608488fa4ee49f2bba0cd60d8 (diff) | |
download | subsurface-24472a3b232f49765fd5e5455a3c8c8fd4a7bac3.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r-- | qt-ui/diveplanner.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |