From 6ae7a02104631a2234c475575ae15ca79bef14f9 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 10 Sep 2020 20:39:49 +0200 Subject: 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 --- tests/auto/widgets/widgets/qmdiarea/tst_qmdiarea.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/auto/widgets/widgets/qmdiarea') diff --git a/tests/auto/widgets/widgets/qmdiarea/tst_qmdiarea.cpp b/tests/auto/widgets/widgets/qmdiarea/tst_qmdiarea.cpp index 8def1a11fc..53dbf2012f 100644 --- a/tests/auto/widgets/widgets/qmdiarea/tst_qmdiarea.cpp +++ b/tests/auto/widgets/widgets/qmdiarea/tst_qmdiarea.cpp @@ -792,7 +792,7 @@ class MyChild : public QWidget { public: MyChild(QWidget *parent = 0) : QWidget(parent) {} - QSize sizeHint() const { return QSize(234, 123); } + QSize sizeHint() const override { return QSize(234, 123); } }; void tst_QMdiArea::childSize() @@ -866,8 +866,8 @@ class LargeWidget : public QWidget { public: LargeWidget(QWidget *parent = 0) : QWidget(parent) {} - QSize sizeHint() const { return QSize(1280, 1024); } - QSize minimumSizeHint() const { return QSize(300, 300); } + QSize sizeHint() const override { return QSize(1280, 1024); } + QSize minimumSizeHint() const override { return QSize(300, 300); } }; // New tests @@ -2051,7 +2051,7 @@ public: void clear() { _count = 0; } protected: - bool eventFilter(QObject *object, QEvent *event) + bool eventFilter(QObject *object, QEvent *event) override { if (event->type() == eventToSpy) ++_count; -- cgit v1.2.3