summaryrefslogtreecommitdiffstats
path: root/qt-ui/divetripmodel.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/divetripmodel.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/divetripmodel.cpp')
-rw-r--r--qt-ui/divetripmodel.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/qt-ui/divetripmodel.cpp b/qt-ui/divetripmodel.cpp
index 0a2944d8b..5082494a0 100644
--- a/qt-ui/divetripmodel.cpp
+++ b/qt-ui/divetripmodel.cpp
@@ -3,8 +3,6 @@
*
* classes for the dive trip list in Subsurface
*/
-
-#include "common.h"
#include "divetripmodel.h"
@@ -70,15 +68,15 @@ QVariant DiveTripModel::headerData(int section, Qt::Orientation orientation, int
{
if (orientation == Qt::Horizontal && role == Qt::DisplayRole) {
if (section == DIVE_NUMBER) {
- return Qtr_("Dive number");
+ return tr("Dive number");
} else if (section == DIVE_DATE_TIME) {
- return Qtr_("Date");
+ return tr("Date");
} else if (section == DIVE_DURATION) {
- return Qtr_("Duration");
+ return tr("Duration");
} else if (section == DIVE_DEPTH) {
- return Qtr_("Depth");
+ return tr("Depth");
} else if (section == DIVE_LOCATION) {
- return Qtr_("Location");
+ return tr("Location");
}
}
return QVariant();