┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/search
diff options
context:
space:
mode:
authorKevin Funk <[email protected]>2017-11-20 23:25:06 +0100
committerKevin Funk <[email protected]>2017-11-20 23:25:48 +0100
commit464b13f3828e5cdd03438d0881c3a62c7cda6333 (patch)
tree724c10c4e06ac3030666f2604066b6cbcc83ffd0 /src/search
parent5bee1889e1682f1e7ffe55e49beaf4544eaf7157 (diff)
Modernize: Use override where possible
Also use override instead of Q_DECL_OVERRIDE
Diffstat (limited to 'src/search')
-rw-r--r--src/search/dolphinfacetswidget.h2
-rw-r--r--src/search/dolphinsearchbox.h12
2 files changed, 7 insertions, 7 deletions
diff --git a/src/search/dolphinfacetswidget.h b/src/search/dolphinfacetswidget.h
index 996829ee3..1e8ab6cea 100644
--- a/src/search/dolphinfacetswidget.h
+++ b/src/search/dolphinfacetswidget.h
@@ -48,7 +48,7 @@ class DolphinFacetsWidget : public QWidget
public:
explicit DolphinFacetsWidget(QWidget* parent = nullptr);
- virtual ~DolphinFacetsWidget();
+ ~DolphinFacetsWidget() override;
QString ratingTerm() const;
QString facetType() const;
diff --git a/src/search/dolphinsearchbox.h b/src/search/dolphinsearchbox.h
index f1ea49091..781c592e1 100644
--- a/src/search/dolphinsearchbox.h
+++ b/src/search/dolphinsearchbox.h
@@ -47,7 +47,7 @@ class DolphinSearchBox : public QWidget {
public:
explicit DolphinSearchBox(QWidget* parent = 0);
- virtual ~DolphinSearchBox();
+ ~DolphinSearchBox() override;
/**
* Sets the text that should be used as input for
@@ -99,11 +99,11 @@ public:
bool isActive() const;
protected:
- virtual bool event(QEvent* event) Q_DECL_OVERRIDE;
- virtual void showEvent(QShowEvent* event) Q_DECL_OVERRIDE;
- virtual void hideEvent(QHideEvent* event) Q_DECL_OVERRIDE;
- virtual void keyReleaseEvent(QKeyEvent* event) Q_DECL_OVERRIDE;
- virtual bool eventFilter(QObject* obj, QEvent* event) Q_DECL_OVERRIDE;
+ bool event(QEvent* event) override;
+ void showEvent(QShowEvent* event) override;
+ void hideEvent(QHideEvent* event) override;
+ void keyReleaseEvent(QKeyEvent* event) override;
+ bool eventFilter(QObject* obj, QEvent* event) override;
signals:
/**