summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-04-14 06:44:29 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-04-14 06:58:56 -0700
commitd8e11439ad27063b0dad05b2f8f0f4cd7f3e7de1 (patch)
tree22fae2f6ee0915afe9075ab6558882ded736ca1b /qt-ui/models.cpp
parentfc0e307f00ceb50771d1c7a1489c7b65721f4143 (diff)
downloadsubsurface-d8e11439ad27063b0dad05b2f8f0f4cd7f3e7de1.tar.gz
Undoing the last Qtr_ hack
The Qtr_ hack isn't needed as in commit 720fc15b2dcd ("Introduce QApplication") had already made sure that we are using gettext. I didn't revert the two commits as I wanted to keep the added header comments and fix the tooling in the Makefile as well. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r--qt-ui/models.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index a341c0c70..64fa6bac3 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -4,7 +4,6 @@
* classes for the equipment models of Subsurface
*
*/
-#include "common.h"
#include "models.h"
#include "../dive.h"
@@ -22,25 +21,25 @@ QVariant CylindersModel::headerData(int section, Qt::Orientation orientation, in
if (role == Qt::DisplayRole) {
switch(section) {
case TYPE:
- ret = Qtr_("Type");
+ ret = tr("Type");
break;
case SIZE:
- ret = Qtr_("Size");
+ ret = tr("Size");
break;
case MAXPRESS:
- ret = Qtr_("MaxPress");
+ ret = tr("MaxPress");
break;
case START:
- ret = Qtr_("Start");
+ ret = tr("Start");
break;
case END:
- ret = Qtr_("End");
+ ret = tr("End");
break;
case O2:
- ret = Qtr_("O2%");
+ ret = tr("O2%");
break;
case HE:
- ret = Qtr_("He%");
+ ret = tr("He%");
break;
}
}
@@ -164,10 +163,10 @@ QVariant WeightModel::headerData(int section, Qt::Orientation orientation, int r
switch(section){
case TYPE:
- ret = Qtr_("Type");
+ ret = tr("Type");
break;
case WEIGHT:
- ret = Qtr_("Weight");
+ ret = tr("Weight");
break;
}
return ret;