summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/kernel/qguiapplication
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-09-10 20:39:49 +0200
committerLars Knoll <lars.knoll@qt.io>2020-09-11 00:20:47 +0200
commit6ae7a02104631a2234c475575ae15ca79bef14f9 (patch)
tree5ca2db0e3aa3c7851c6d19117147c581bebeeee3 /tests/auto/gui/kernel/qguiapplication
parent459e8dfdfb8ac164383c14332b2b0919f59f8b3c (diff)
Remove most compiler warnings about missing overrides
Remove around 1000 compiler warnings about missing overrides in our auto tests. This significantly reduce the compiler warning noise in our auto tests, so that one can actually better see the real problems inbetween. Change-Id: Id0c04dba43fcaf55d8cd2b5c6697358857c31bf9 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/gui/kernel/qguiapplication')
-rw-r--r--tests/auto/gui/kernel/qguiapplication/tst_qguiapplication.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/gui/kernel/qguiapplication/tst_qguiapplication.cpp b/tests/auto/gui/kernel/qguiapplication/tst_qguiapplication.cpp
index e0415441b9..b68f00ea46 100644
--- a/tests/auto/gui/kernel/qguiapplication/tst_qguiapplication.cpp
+++ b/tests/auto/gui/kernel/qguiapplication/tst_qguiapplication.cpp
@@ -186,7 +186,7 @@ class DummyWindow : public QWindow
public:
DummyWindow() : m_focusObject(nullptr) {}
- virtual QObject *focusObject() const
+ virtual QObject *focusObject() const override
{
return m_focusObject;
}
@@ -353,14 +353,14 @@ void tst_QGuiApplication::abortQuitOnShow()
class FocusChangeWindow: public QWindow
{
protected:
- virtual bool event(QEvent *ev)
+ virtual bool event(QEvent *ev) override
{
if (ev->type() == QEvent::FocusAboutToChange)
windowDuringFocusAboutToChange = qGuiApp->focusWindow();
return QWindow::event(ev);
}
- virtual void focusOutEvent(QFocusEvent *)
+ virtual void focusOutEvent(QFocusEvent *) override
{
windowDuringFocusOut = qGuiApp->focusWindow();
}
@@ -602,7 +602,7 @@ public:
inline explicit BlockableWindow(QWindow *parent = nullptr)
: QWindow(parent), blocked(false), leaves(0), enters(0) {}
- bool event(QEvent *e)
+ bool event(QEvent *e) override
{
switch (e->type()) {
case QEvent::WindowBlocked:
@@ -985,7 +985,7 @@ class TestPluginFactory : public QGenericPlugin
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QGenericPluginFactoryInterface" FILE "testplugin.json")
public:
- QObject* create(const QString &key, const QString &)
+ QObject* create(const QString &key, const QString &) override
{
if (key == "testplugin")
return new TestPlugin;
@@ -1003,7 +1003,7 @@ public:
: customEvents(0)
{}
- virtual void customEvent(QEvent *)
+ virtual void customEvent(QEvent *) override
{
customEvents++;
}