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/main.cpp | |
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/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 | |||
@@ -70,48 +70,49 @@ void initEnvironment() | |||
70 | 70 | ||
71 | int initApplication( int argc, char ** argv ) | 71 | int initApplication( int argc, char ** argv ) |
72 | { | 72 | { |
73 | initEnvironment(); | 73 | initEnvironment(); |
74 | 74 | ||
75 | #if !defined(QT_QWS_CASSIOPEIA) && !defined(QT_QWS_IPAQ) && !defined(QT_QWS_EBX) | 75 | #if !defined(QT_QWS_CASSIOPEIA) && !defined(QT_QWS_IPAQ) && !defined(QT_QWS_EBX) |
76 | setenv( "QWS_SIZE", "240x320", 0 ); | 76 | setenv( "QWS_SIZE", "240x320", 0 ); |
77 | #endif | 77 | #endif |
78 | 78 | ||
79 | //Don't flicker at startup: | 79 | //Don't flicker at startup: |
80 | QWSServer::setDesktopBackground( QImage() ); | 80 | QWSServer::setDesktopBackground( QImage() ); |
81 | DesktopApplication a( argc, argv, QApplication::GuiServer ); | 81 | DesktopApplication a( argc, argv, QApplication::GuiServer ); |
82 | 82 | ||
83 | ODevice::inst ( )-> setSoftSuspend ( true ); | 83 | ODevice::inst ( )-> setSoftSuspend ( true ); |
84 | 84 | ||
85 | { // init backlight | 85 | { // init backlight |
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()) ); |
102 | QObject::connect( &a, SIGNAL(capsLockStateToggle()), d, SLOT(toggleCapsLockState()) ); | 103 | QObject::connect( &a, SIGNAL(capsLockStateToggle()), d, SLOT(toggleCapsLockState()) ); |
103 | QObject::connect( &a, SIGNAL(prepareForRestart()), d, SLOT(terminateServers()) ); | 104 | QObject::connect( &a, SIGNAL(prepareForRestart()), d, SLOT(terminateServers()) ); |
104 | 105 | ||
105 | (void)new SysFileMonitor(d); | 106 | (void)new SysFileMonitor(d); |
106 | Network::createServer(d); | 107 | Network::createServer(d); |
107 | 108 | ||
108 | #if defined(QT_QWS_CASSIOPEIA) || defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX) | 109 | #if defined(QT_QWS_CASSIOPEIA) || defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX) |
109 | if ( !QFile::exists( "/etc/pointercal" ) ) { | 110 | if ( !QFile::exists( "/etc/pointercal" ) ) { |
110 | // Make sure calibration widget starts on top. | 111 | // Make sure calibration widget starts on top. |
111 | Calibrate *cal = new Calibrate; | 112 | Calibrate *cal = new Calibrate; |
112 | cal->exec(); | 113 | cal->exec(); |
113 | delete cal; | 114 | delete cal; |
114 | } | 115 | } |
115 | #endif | 116 | #endif |
116 | 117 | ||
117 | d->show(); | 118 | d->show(); |