mirror of https://github.com/qt/qtbase.git
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:
parent
28b4bd7dbb
commit
e33a449271
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue