diff options
| author | 2013-10-04 21:39:33 +0300 | |
|---|---|---|
| committer | 2013-10-04 11:57:28 -0700 | |
| commit | ae713763c79afb483afec12d02730e0c5a8af309 (patch) | |
| tree | 0d1dae49cccdfa464e7675d40c3d41d522a194f6 /qthelper.h | |
| parent | f63605e02e4656b60c6c095f4289dbffa293bc2d (diff) | |
| download | subsurface-ae713763c79afb483afec12d02730e0c5a8af309.tar.gz | |
Add a helper function to calculate weight display string
Add a helper function to unify the calculation of the
weight display string, instead of having the same calculation
in two places in the code.
Signed-off-by: Benjamin Fogel <nystire@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qthelper.h')
| -rw-r--r-- | qthelper.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qthelper.h b/qthelper.h index fcbcbff9a..3ac83b5c4 100644 --- a/qthelper.h +++ b/qthelper.h @@ -4,6 +4,7 @@ #include <QMultiMap> #include <QString> #include <stdint.h> +#include "dive.h" class DiveComputerNode { public: @@ -32,4 +33,6 @@ public: QMultiMap<QString, struct DiveComputerNode> dcWorkingMap; }; +QString weight_string(int weight_in_grams); + #endif // QTHELPER_H |