diff options
Diffstat (limited to 'tests/auto/other/qfocusevent/tst_qfocusevent.cpp')
-rw-r--r-- | tests/auto/other/qfocusevent/tst_qfocusevent.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/other/qfocusevent/tst_qfocusevent.cpp b/tests/auto/other/qfocusevent/tst_qfocusevent.cpp index 0242f8a36e..5c025c8c4e 100644 --- a/tests/auto/other/qfocusevent/tst_qfocusevent.cpp +++ b/tests/auto/other/qfocusevent/tst_qfocusevent.cpp @@ -54,19 +54,19 @@ public: bool focusOutEventRecieved; bool focusOutEventLostFocus; protected: - virtual void keyPressEvent( QKeyEvent *e ) + virtual void keyPressEvent( QKeyEvent *e ) override { // qDebug( QString("keyPressEvent: %1").arg(e->key()) ); QLineEdit::keyPressEvent( e ); } - void focusInEvent( QFocusEvent* e ) + void focusInEvent( QFocusEvent* e ) override { QLineEdit::focusInEvent( e ); focusInEventReason = e->reason(); focusInEventGotFocus = e->gotFocus(); focusInEventRecieved = true; } - void focusOutEvent( QFocusEvent* e ) + void focusOutEvent( QFocusEvent* e ) override { QLineEdit::focusOutEvent( e ); focusOutEventReason = e->reason(); |