diff options
author | Jocke <j.bygdell@gmail.com> | 2018-07-12 10:41:32 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-07-12 17:15:05 +0300 |
commit | 59465b85f6484dedfa2ba9632489ca26f354419f (patch) | |
tree | b71d8a475f08986209d9db5ba1a875470ed196b4 /core/qthelper.cpp | |
parent | a8bfa5f053b04c467c69f73715e18bfaee3b07b8 (diff) | |
download | subsurface-59465b85f6484dedfa2ba9632489ca26f354419f.tar.gz |
Don't show decimals on pressures
As per discussion in #1460 there is no point in showing decimal values
for pressures in the equipment tab on desktop or in the dive edit view on
mobile.
Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r-- | core/qthelper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp index 8b770f6b2..3ca48c480 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -652,7 +652,7 @@ QString get_pressure_string(pressure_t pressure, bool showunit) { if (prefs.units.pressure == units::BAR) { double bar = pressure.mbar / 1000.0; - return QString("%L1%2").arg(bar, 0, 'f', 1).arg(showunit ? gettextFromC::tr("bar") : QString()); + return QString("%L1%2").arg(bar, 0, 'f', 0).arg(showunit ? gettextFromC::tr("bar") : QString()); } else { double psi = mbar_to_PSI(pressure.mbar); return QString("%L1%2").arg(psi, 0, 'f', 0).arg(showunit ? gettextFromC::tr("psi") : QString()); |