author | llornkcor <llornkcor> | 2002-10-20 04:30:34 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-10-20 04:30:34 (UTC) |
commit | e2694c5aedb3697a373e363cebe72cddb3114a8f (patch) (unidiff) | |
tree | 5ba5910a40cfc151e01a956c609f1bdd0243668e /core/launcher | |
parent | f6a0af65b96edf63135d2b88c17b8510eebbbd51 (diff) | |
download | opie-e2694c5aedb3697a373e363cebe72cddb3114a8f.zip opie-e2694c5aedb3697a373e363cebe72cddb3114a8f.tar.gz opie-e2694c5aedb3697a373e363cebe72cddb3114a8f.tar.bz2 |
fix menu button on zaurus F11 raising opie menu
-rw-r--r-- | core/launcher/desktop.cpp | 4 | ||||
-rw-r--r-- | core/launcher/desktop.h | 1 | ||||
-rw-r--r-- | core/launcher/main.cpp | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp index 3546e28..9863187 100644 --- a/core/launcher/desktop.cpp +++ b/core/launcher/desktop.cpp | |||
@@ -470,22 +470,22 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) | |||
470 | } | 470 | } |
471 | else if ( press ) { | 471 | else if ( press ) { |
472 | cardSendTimer = new QTimer(); | 472 | cardSendTimer = new QTimer(); |
473 | cardSendTimer->start( 2000, TRUE ); | 473 | cardSendTimer->start( 2000, TRUE ); |
474 | connect( cardSendTimer, SIGNAL( timeout() ), this, SLOT( sendCard() ) ); | 474 | connect( cardSendTimer, SIGNAL( timeout() ), this, SLOT( sendCard() ) ); |
475 | } | 475 | } |
476 | return TRUE; | 476 | return TRUE; |
477 | } | 477 | } |
478 | /* menu key now opens application menu/toolbar | 478 | // menu key now opens application menu/toolbar |
479 | if ( ke->simpleData.keycode == Key_F11 ) { | 479 | if ( ke->simpleData.keycode == Key_F11 ) { |
480 | if ( press ) emit menu(); | 480 | if ( press ) emit menu(); |
481 | return TRUE; | 481 | return TRUE; |
482 | } | 482 | } |
483 | */ | 483 | |
484 | if ( ke->simpleData.keycode == Key_F12 ) { | 484 | if ( ke->simpleData.keycode == Key_F12 ) { |
485 | while ( activePopupWidget() ) | 485 | while ( activePopupWidget() ) |
486 | activePopupWidget() ->close(); | 486 | activePopupWidget() ->close(); |
487 | if ( press ) | 487 | if ( press ) |
488 | emit launch(); | 488 | emit launch(); |
489 | return TRUE; | 489 | return TRUE; |
490 | } | 490 | } |
491 | if ( ke->simpleData.keycode == Key_F13 ) { | 491 | if ( ke->simpleData.keycode == Key_F13 ) { |
diff --git a/core/launcher/desktop.h b/core/launcher/desktop.h index 09ffe1c..5de85f4 100644 --- a/core/launcher/desktop.h +++ b/core/launcher/desktop.h | |||
@@ -44,16 +44,17 @@ class DesktopApplication : public QPEApplication | |||
44 | Q_OBJECT | 44 | Q_OBJECT |
45 | public: | 45 | public: |
46 | DesktopApplication( int& argc, char **argv, Type t ); | 46 | DesktopApplication( int& argc, char **argv, Type t ); |
47 | ~DesktopApplication(); | 47 | ~DesktopApplication(); |
48 | 48 | ||
49 | static void switchLCD ( bool on ); // only for togglePower in Desktop | 49 | static void switchLCD ( bool on ); // only for togglePower in Desktop |
50 | 50 | ||
51 | signals: | 51 | signals: |
52 | void menu(); | ||
52 | void home(); | 53 | void home(); |
53 | void datebook(); | 54 | void datebook(); |
54 | void contacts(); | 55 | void contacts(); |
55 | void launch(); | 56 | void launch(); |
56 | void email(); | 57 | void email(); |
57 | void backlight(); | 58 | void backlight(); |
58 | void power(); | 59 | void power(); |
59 | void symbol(); | 60 | void symbol(); |
diff --git a/core/launcher/main.cpp b/core/launcher/main.cpp index 762a596..8974ced 100644 --- a/core/launcher/main.cpp +++ b/core/launcher/main.cpp | |||
@@ -86,16 +86,17 @@ int initApplication( int argc, char ** argv ) | |||
86 | QCopEnvelope e("QPE/System", "setBacklight(int)" ); | 86 | QCopEnvelope e("QPE/System", "setBacklight(int)" ); |
87 | e << -3; // Forced on | 87 | e << -3; // Forced on |
88 | } | 88 | } |
89 | 89 | ||
90 | AlarmServer::initialize(); | 90 | AlarmServer::initialize(); |
91 | 91 | ||
92 | Desktop *d = new Desktop(); | 92 | Desktop *d = new Desktop(); |
93 | 93 | ||
94 | QObject::connect( &a, SIGNAL(menu()), d, SLOT(raiseMenu()) ); | ||
94 | QObject::connect( &a, SIGNAL(datebook()), d, SLOT(raiseDatebook()) ); | 95 | QObject::connect( &a, SIGNAL(datebook()), d, SLOT(raiseDatebook()) ); |
95 | QObject::connect( &a, SIGNAL(contacts()), d, SLOT(raiseContacts()) ); | 96 | QObject::connect( &a, SIGNAL(contacts()), d, SLOT(raiseContacts()) ); |
96 | QObject::connect( &a, SIGNAL(launch()), d, SLOT(raiseLauncher()) ); | 97 | QObject::connect( &a, SIGNAL(launch()), d, SLOT(raiseLauncher()) ); |
97 | QObject::connect( &a, SIGNAL(email()), d, SLOT(raiseEmail()) ); | 98 | QObject::connect( &a, SIGNAL(email()), d, SLOT(raiseEmail()) ); |
98 | QObject::connect( &a, SIGNAL(power()), d, SLOT(togglePower()) ); | 99 | QObject::connect( &a, SIGNAL(power()), d, SLOT(togglePower()) ); |
99 | QObject::connect( &a, SIGNAL(backlight()), d, SLOT(toggleLight()) ); | 100 | QObject::connect( &a, SIGNAL(backlight()), d, SLOT(toggleLight()) ); |
100 | QObject::connect( &a, SIGNAL(symbol()), d, SLOT(toggleSymbolInput()) ); | 101 | QObject::connect( &a, SIGNAL(symbol()), d, SLOT(toggleSymbolInput()) ); |
101 | QObject::connect( &a, SIGNAL(numLockStateToggle()), d, SLOT(toggleNumLockState()) ); | 102 | QObject::connect( &a, SIGNAL(numLockStateToggle()), d, SLOT(toggleNumLockState()) ); |