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>
This commit is contained in:
Oliver Eftevaag 2022-05-13 15:43:26 +02:00 committed by Marc Mutz
parent 28b4bd7dbb
commit e33a449271
1 changed files with 1 additions and 1 deletions

View File

@ -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: