summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-27 07:17:05 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-27 10:16:25 -0800
commita74175324a141a519f6d11bf998f08e835bc1bb7 (patch)
tree65ac16ccc2b7741f4439cd5394eeb0378823ec70 /qt-mobile/qmlmanager.cpp
parent140624918c7328f46e9d3cddd9aa3c749f28bf34 (diff)
downloadsubsurface-a74175324a141a519f6d11bf998f08e835bc1bb7.tar.gz
QML UI: fix precision of total weight displayed
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qmlmanager.cpp')
-rw-r--r--qt-mobile/qmlmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp
index 336774c1b..5cff8f7d4 100644
--- a/qt-mobile/qmlmanager.cpp
+++ b/qt-mobile/qmlmanager.cpp
@@ -734,10 +734,10 @@ QString QMLManager::getWeights(const QString& diveId)
weight += d->weightsystem[i].weight.grams;
if (informational_prefs.unit_system == IMPERIAL){
- weights = QString::number(grams_to_lbs(weight)) + " lbs";
+ weights = QString::number(grams_to_lbs(weight), 'f', 1) + " lbs";
}
else {
- weights = QString::number(weight/1000) + " kg";
+ weights = QString::number(weight/1000, 'f', 1) + " kg";
}
}
return weights;