diff options
author | Stefan Fuchs <sfuchs@gmx.de> | 2018-09-09 10:25:42 +0200 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2018-09-12 10:24:48 +0200 |
commit | 56fda691ec38431f5982511152e007a7862ebb15 (patch) | |
tree | e744925311b3c55c39f1c3ed32e850d15b858681 /desktop-widgets/simplewidgets.h | |
parent | d1060319d7243c110aa938409753df14d5343923 (diff) | |
download | subsurface-56fda691ec38431f5982511152e007a7862ebb15.tar.gz |
Fix broken translations in dive list filter plus simplify strings
Fix some broken translations in the dive list filter UI by adding
Q_OBJECT line to the class definitions of filter classes.
Plus simplify some strings given to translation by separating parts
like ": ".
Suggested-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Suggested-by: Jan Mulder <jlmulder@xs4all.nl>
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'desktop-widgets/simplewidgets.h')
-rw-r--r-- | desktop-widgets/simplewidgets.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop-widgets/simplewidgets.h b/desktop-widgets/simplewidgets.h index aec7303b1..3604a847e 100644 --- a/desktop-widgets/simplewidgets.h +++ b/desktop-widgets/simplewidgets.h @@ -167,6 +167,7 @@ public: }; class FilterBase : public QWidget { + Q_OBJECT void addContextMenuEntry(const QString &s, void (FilterModelBase::*)()); protected: FilterBase(FilterModelBase *model, QWidget *parent = 0); @@ -178,21 +179,25 @@ protected: }; class TagFilter : public FilterBase { + Q_OBJECT public: TagFilter(QWidget *parent = 0); }; class BuddyFilter : public FilterBase { + Q_OBJECT public: BuddyFilter(QWidget *parent = 0); }; class SuitFilter : public FilterBase { + Q_OBJECT public: SuitFilter(QWidget *parent = 0); }; class LocationFilter : public FilterBase { + Q_OBJECT public: LocationFilter(QWidget *parent = 0); }; |