diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-10-06 08:55:58 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-06 10:42:32 -0700 |
commit | 4d3e74a23676a33ffdc04a4a8b83c05f63b2693c (patch) | |
tree | 23cff2046459ab33f32499e71e7caeb5892dbcd6 /qthelper.cpp | |
parent | 2c4ccc04bd384090917d7d17221012611426edb3 (diff) | |
download | subsurface-4d3e74a23676a33ffdc04a4a8b83c05f63b2693c.tar.gz |
Trying to switch to Qt translation
This compiles and looks about right, but it doesn't appear to work, yet.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qthelper.cpp')
-rw-r--r-- | qthelper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qthelper.cpp b/qthelper.cpp index 0af4dacea..a4e8bd50b 100644 --- a/qthelper.cpp +++ b/qthelper.cpp @@ -86,9 +86,9 @@ QString weight_string(int weight_in_grams) int gr = weight_in_grams % 1000; int kg = weight_in_grams / 1000; if (kg >= 20.0) { - str = QString("0"); + str = QString("0"); } else { - str = QString("%1.%2").arg(kg).arg((unsigned)(gr) / 100); + str = QString("%1.%2").arg(kg).arg((unsigned)(gr) / 100); } } else { double lbs = grams_to_lbs(weight_in_grams); |