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>
This commit is contained in:
Dirk Hohndel 2014-07-17 08:03:52 -07:00
parent 13b8680b0c
commit 24472a3b23
2 changed files with 12 additions and 6 deletions

View file

@ -169,6 +169,7 @@ slots:
private:
Ui::plannerSettingsWidget ui;
void updateUnitsUI();
};
QString dpGasToStr(const divedatapoint &p);