diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-06-18 10:48:46 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-18 10:48:46 -0700 |
commit | 370673cc999f9738f247d1c0544ab49733c25a39 (patch) | |
tree | bc3270601b5305c86563a18a5a30579cefa208e2 /helpers.h | |
parent | dda28c76aa4b71c6f17999a11cc486460518398c (diff) | |
download | subsurface-370673cc999f9738f247d1c0544ab49733c25a39.tar.gz |
Improve display of yearly statistics
Display the units in the header, make the header more consistent
looking, convert the values into the right units with appropriate
precision.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'helpers.h')
-rw-r--r-- | helpers.h | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -11,11 +11,16 @@ #include "dive.h" #include "qthelper.h" -QString get_depth_string(depth_t depth, bool showunit); -QString get_weight_string(weight_t weight, bool showunit); -QString get_temperature_string(temperature_t temp, bool showunit); -QString get_volume_string(volume_t volume, bool showunit); -QString get_pressure_string(pressure_t pressure, bool showunit); +QString get_depth_string(depth_t depth, bool showunit = false); +QString get_depth_unit(); +QString get_weight_string(weight_t weight, bool showunit = false); +QString get_weight_unit(); +QString get_temperature_string(temperature_t temp, bool showunit = false); +QString get_temp_unit(); +QString get_volume_string(volume_t volume, bool showunit = false); +QString get_volume_unit(); +QString get_pressure_string(pressure_t pressure, bool showunit = false); +QString get_pressure_unit(); void set_default_dive_computer(const char *vendor, const char *product); void set_default_dive_computer_device(const char *name); QString getSubsurfaceDataPath(QString folderToFind); |