author | harlekin <harlekin> | 2002-03-11 19:51:33 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-03-11 19:51:33 (UTC) |
commit | f1c93c0eb0d9599b0f5e0c0406defc2f2f6c6988 (patch) (unidiff) | |
tree | 39137a365e373fe3f50932b118308b20faf9ca08 | |
parent | 0f81c8354840d1c8e54e3b083d965e1b2489bb36 (diff) | |
download | opie-f1c93c0eb0d9599b0f5e0c0406defc2f2f6c6988.zip opie-f1c93c0eb0d9599b0f5e0c0406defc2f2f6c6988.tar.gz opie-f1c93c0eb0d9599b0f5e0c0406defc2f2f6c6988.tar.bz2 |
now opie grabs the powerkey on ipaq too, not only zaurus
-rw-r--r-- | core/launcher/desktop.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp index da535d9..680cc06 100644 --- a/core/launcher/desktop.cpp +++ b/core/launcher/desktop.cpp | |||
@@ -240,4 +240,8 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) | |||
240 | return TRUE; | 240 | return TRUE; |
241 | } | 241 | } |
242 | if ( ke->simpleData.keycode == Key_SysReq ) { | ||
243 | if ( press ) emit power(); | ||
244 | return TRUE; | ||
245 | } | ||
242 | if ( ke->simpleData.keycode == Key_F35 ) { | 246 | if ( ke->simpleData.keycode == Key_F35 ) { |
243 | if ( press ) emit backlight(); | 247 | if ( press ) emit backlight(); |
@@ -553,5 +557,5 @@ void Desktop::togglePower() | |||
553 | 557 | ||
554 | system("apm --suspend"); | 558 | system("apm --suspend"); |
555 | execAutoStart(); | 559 | |
556 | QWSServer::screenSaverActivate( FALSE ); | 560 | QWSServer::screenSaverActivate( FALSE ); |
557 | { | 561 | { |
@@ -563,5 +567,5 @@ void Desktop::togglePower() | |||
563 | login(TRUE); | 567 | login(TRUE); |
564 | } | 568 | } |
565 | 569 | execAutoStart(); | |
566 | //qcopBridge->closeOpenConnections(); | 570 | //qcopBridge->closeOpenConnections(); |
567 | //qDebug("called togglePower()!!!!!!"); | 571 | //qDebug("called togglePower()!!!!!!"); |