diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2015-10-20 14:36:53 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-23 22:48:41 +0900 |
commit | 604971ca0c83e8d3993aed04261443692122109e (patch) | |
tree | 12c44831c519501c88e39c8ea9ea7b0bc3067323 /qt-models/divetripmodel.h | |
parent | f682ea00855cc2b52cefeeaf463f5d4ffbd4b33e (diff) | |
download | subsurface-604971ca0c83e8d3993aed04261443692122109e.tar.gz |
Add missing tr() implementations
One specific string did not translate. First, Dirk and I (via IRC)
suspected a leading space was the issue (see commit eccac1321f512d8).
However, I found out that the problem was still there. A non translated
string "%1 shown", when applying a filter on the divelist, and looking at
a trip line. It shows always untranslated "%1 shown". Extracting
to-be-translated strings from the code, I found 2 errors: Class
<classname> lacks Q_OBJECT macro.
This patch adds a missing tr() definition and implementation to 2 structs.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/divetripmodel.h')
-rw-r--r-- | qt-models/divetripmodel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-models/divetripmodel.h b/qt-models/divetripmodel.h index 63dc806e7..31cee9633 100644 --- a/qt-models/divetripmodel.h +++ b/qt-models/divetripmodel.h @@ -5,6 +5,8 @@ #include "dive.h" struct DiveItem : public TreeItem { + Q_DECLARE_TR_FUNCTIONS(TripItem) +public: enum Column { NR, DATE, @@ -38,6 +40,8 @@ struct DiveItem : public TreeItem { }; struct TripItem : public TreeItem { + Q_DECLARE_TR_FUNCTIONS(TripItem) +public: virtual QVariant data(int column, int role) const; dive_trip_t *trip; }; |