diff options
author | Oliver Eftevaag <oliver.eftevaag@qt.io> | 2022-05-13 15:43:26 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-05-13 18:49:05 +0000 |
commit | e33a44927132d3684748ad5236d5b7fc9da334d2 (patch) | |
tree | ea08cd05c9b5f1c356b408875a2945ab347e37d1 | |
parent | 28b4bd7dbbd4c0d4e2e04aff0ff885ec163975bc (diff) |
Add override keyword to avoid warning from compiler
A class that reimplements a virtual function isn't using the override
keyword, which generates a warning during compilation.
Pick-to: 6.3
Change-Id: Ic39ea24993e031f95ac9e61c3285d3be05fe6c34
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
-rw-r--r-- | tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp b/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp index dfcedc065d..04d0957d72 100644 --- a/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp +++ b/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp @@ -1576,7 +1576,7 @@ void tst_QApplication::activateDeactivateEvent() int activateCount = 0; int deactivateCount = 0; protected: - bool event(QEvent *e) + bool event(QEvent *e) override { switch (e->type()) { case QEvent::WindowActivate: |