diff options
author | Amit Chaudhuri <amit.k.chaudhuri@gmail.com> | 2013-05-10 23:56:05 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-10 16:01:17 -0700 |
commit | 97a044d41f67757de1e5bd0694f6502af1be4f4c (patch) | |
tree | 72e6b235c2dd3ff0bb4da33418a904e4f79a73ba /qt-gui.cpp | |
parent | 1245c232dba019d5a87102b93c1a011e0998b47c (diff) | |
download | subsurface-97a044d41f67757de1e5bd0694f6502af1be4f4c.tar.gz |
Tweaks to maintab
Align statistics tab labels as per infotab.
Amend helper function to show degree symbol for temp measurements.
Change order of member initialisation list to match order of decl
(ProfileGraphicsView::ProfileGraphicsView)
Signed-off-by: Amit Chaudhuri <amit.k.chaudhuri@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r-- | qt-gui.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp index d70e00379..e3a8ad5aa 100644 --- a/qt-gui.cpp +++ b/qt-gui.cpp @@ -171,10 +171,12 @@ QString get_temperature_string(temperature_t temp, bool showunit) { if (prefs.units.temperature == units::CELSIUS) { double celsius = mkelvin_to_C(temp.mkelvin); - return QString("%1%2").arg(celsius, 0, 'f', 1).arg(showunit ? _("C") : ""); + return QString("%1%2%3").arg(celsius, 0, 'f', 1).arg(showunit ? (UTF8_DEGREE): "") + .arg(showunit ? _("C") : ""); } else { double fahrenheit = mkelvin_to_F(temp.mkelvin); - return QString("%1%2").arg(fahrenheit, 0, 'f', 1).arg(showunit ? _("F") : ""); + return QString("%1%2%3").arg(fahrenheit, 0, 'f', 1).arg(showunit ? (UTF8_DEGREE): "") + .arg(showunit ? _("F") : ""); } } |