diff options
Diffstat (limited to 'kexi/main/startup/KexiStartupFileDialog.cpp')
-rw-r--r-- | kexi/main/startup/KexiStartupFileDialog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kexi/main/startup/KexiStartupFileDialog.cpp b/kexi/main/startup/KexiStartupFileDialog.cpp index 7b0aa5c8..61aa0735 100644 --- a/kexi/main/startup/KexiStartupFileDialog.cpp +++ b/kexi/main/startup/KexiStartupFileDialog.cpp @@ -409,9 +409,9 @@ void KexiStartupFileDialog::setFocus() bool KexiStartupFileDialog::eventFilter ( TQObject * watched, TQEvent * e ) { //filter-out ESC key - if (e->type()==TQEvent::KeyPress && TQT_TQKEYEVENT(e)->key()==TQt::Key_Escape - && TQT_TQKEYEVENT(e)->state()==TQt::NoButton) { - TQT_TQKEYEVENT(e)->accept(); + if (e->type()==TQEvent::KeyPress && static_cast<TQKeyEvent*>(e)->key()==TQt::Key_Escape + && static_cast<TQKeyEvent*>(e)->state()==TQt::NoButton) { + static_cast<TQKeyEvent*>(e)->accept(); emit rejected(); return true; } |