-rw-r--r-- | library/qpeapplication.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp index c875ff2..86dbe85 100644 --- a/library/qpeapplication.cpp +++ b/library/qpeapplication.cpp @@ -1040,24 +1040,16 @@ void QPEApplication::mapToDefaultAction( QWSKeyEvent * ke, int key ) key = Qt::Key_Return; #ifdef QWS ke->simpleData.keycode = key; #endif } -// class HackWidget : public QWidget -// { -// public: -// bool needsOk() -// { -// return ( getWState() & WState_Reserved1 ); -// } -// }; /*! \internal */ #ifdef QWS bool QPEApplication::qwsEventFilter( QWSEvent * e ) { @@ -1117,16 +1109,17 @@ bool QPEApplication::qwsEventFilter( QWSEvent * e ) else if ( ke->simpleData.keycode == Qt::Key_Escape && ke->simpleData.is_press ) { // Escape key closes app if focus on toplevel QWidget * active = activeWindow(); if ( active && active->testWFlags( WType_TopLevel ) && ( int ) active->winId() == ke->simpleData.window && !active->testWFlags( WStyle_Dialog | WStyle_Customize | WType_Popup | WType_Desktop ) ) { if ( active->inherits( "QDialog" ) ) { + qDebug("dialog hack"); HackDialog * d = ( HackDialog * ) active; d->rejectIt(); return TRUE; } } } else if ( ke->simpleData.keycode >= Qt::Key_F1 && ke->simpleData.keycode <= Qt::Key_F29 ) { // this should be if ( ODevice::inst ( )-> buttonForKeycode ( ... )) |