summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-03-17 22:52:42 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-17 20:37:41 -0700
commit17a675367d8d3b622a9793225f161d9efbf985ac (patch)
tree136026924dadad602e10b40069a19278bfb49d84 /qt-ui
parentf8d30ae528b22ca4da0f0d9c332c54c77de94d36 (diff)
downloadsubsurface-17a675367d8d3b622a9793225f161d9efbf985ac.tar.gz
Translate using tr() to be Qt5-compatible
There are no utf8 in those strings, and we can translate them as everything else with tr() instead. QApplication::UnicodeUTF8-part is deprecated and removed in Qt5. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/maintab.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 660fc4f90..26a7ef98c 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -229,11 +229,11 @@ void MainTab::displayMessage(QString str)
void MainTab::updateTextLabels(bool showUnits)
{
if (showUnits && prefs.text_label_with_units) {
- ui.airTempLabel->setText(QApplication::translate("MainTab", "Air temp [%1]").arg(get_temp_unit()));
- ui.waterTempLabel->setText(QApplication::translate("MainTab", "Water temp [%1]").arg(get_temp_unit()));
+ ui.airTempLabel->setText(tr("Air temp [%1]").arg(get_temp_unit()));
+ ui.waterTempLabel->setText(tr("Water temp [%1]").arg(get_temp_unit()));
} else {
- ui.airTempLabel->setText(QApplication::translate("MainTab", "Air temp", 0, QApplication::UnicodeUTF8));
- ui.waterTempLabel->setText(QApplication::translate("MainTab", "Water temp", 0, QApplication::UnicodeUTF8));
+ ui.airTempLabel->setText(tr("Air temp"));
+ ui.waterTempLabel->setText(tr("Water temp"));
}
}