summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/simplewidgets.cpp
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2018-09-09 10:25:42 +0200
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2018-09-12 10:24:48 +0200
commit56fda691ec38431f5982511152e007a7862ebb15 (patch)
treee744925311b3c55c39f1c3ed32e850d15b858681 /desktop-widgets/simplewidgets.cpp
parentd1060319d7243c110aa938409753df14d5343923 (diff)
downloadsubsurface-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.cpp')
-rw-r--r--desktop-widgets/simplewidgets.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop-widgets/simplewidgets.cpp b/desktop-widgets/simplewidgets.cpp
index 4bc36daa7..79a3cc069 100644
--- a/desktop-widgets/simplewidgets.cpp
+++ b/desktop-widgets/simplewidgets.cpp
@@ -541,23 +541,23 @@ void FilterBase::hideEvent(QHideEvent *event)
TagFilter::TagFilter(QWidget *parent) : FilterBase(TagFilterModel::instance(), parent)
{
- ui.label->setText(tr("Tags: "));
+ ui.label->setText(tr("Tags") + QStringLiteral(": "));
}
BuddyFilter::BuddyFilter(QWidget *parent) : FilterBase(BuddyFilterModel::instance(), parent)
{
- ui.label->setText(tr("Person: "));
+ ui.label->setText(tr("Person") + QStringLiteral(": "));
ui.label->setToolTip(tr("Searches for buddies and divemasters"));
}
LocationFilter::LocationFilter(QWidget *parent) : FilterBase(LocationFilterModel::instance(), parent)
{
- ui.label->setText(tr("Location: "));
+ ui.label->setText(tr("Location") + QStringLiteral(": "));
}
SuitFilter::SuitFilter(QWidget *parent) : FilterBase(SuitsFilterModel::instance(), parent)
{
- ui.label->setText(tr("Suits: "));
+ ui.label->setText(tr("Suits") + QStringLiteral(": "));
}
MultiFilter::MultiFilter(QWidget *parent) : QWidget(parent)