summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpeapplication.cpp9
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
@@ -1042,20 +1042,12 @@ void QPEApplication::mapToDefaultAction( QWSKeyEvent * ke, int key )
#ifdef QWS
ke->simpleData.keycode = key;
#endif
}
-// class HackWidget : public QWidget
-// {
-// public:
-// bool needsOk()
-// {
-// return ( getWState() & WState_Reserved1 );
-// }
-// };
/*!
\internal
*/
#ifdef QWS
@@ -1119,12 +1111,13 @@ bool QPEApplication::qwsEventFilter( QWSEvent * e )
// 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;
}
}
}