summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/simplewidgets.cpp8
-rw-r--r--desktop-widgets/simplewidgets.h5
2 files changed, 9 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)
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);
};