mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
fc0e307f00
commit
d8e11439ad
7 changed files with 21 additions and 48 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue