author | llornkcor <llornkcor> | 2002-09-02 13:59:25 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-09-02 13:59:25 (UTC) |
commit | ffa6856b8ccbaa44d950b7f311011c990f656d47 (patch) (side-by-side diff) | |
tree | dbfd44501dd6e70a2252b23e0fe50d81394ebc26 | |
parent | 4d7f2095e3119cac9319ab6b48492705188ce5cb (diff) | |
download | opie-ffa6856b8ccbaa44d950b7f311011c990f656d47.zip opie-ffa6856b8ccbaa44d950b7f311011c990f656d47.tar.gz opie-ffa6856b8ccbaa44d950b7f311011c990f656d47.tar.bz2 |
fix typo
-rw-r--r-- | core/launcher/desktop.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp index 8756d37..bf19280 100644 --- a/core/launcher/desktop.cpp +++ b/core/launcher/desktop.cpp @@ -473,66 +473,66 @@ void Desktop::raiseLauncher() launcher->nextView(); else launcher->raise(); } else { QCopEnvelope e("QPE/System","execute(QString)"); e << tempItem; } } void Desktop::executeOrModify(const QString& appLnkFile) { AppLnk lnk(MimeType::appsFolderName() + "/" + appLnkFile); if ( lnk.isValid() ) { QCString app = lnk.exec().utf8(); Global::terminateBuiltin("calibrate"); if ( QCopChannel::isRegistered("QPE/Application/" + app) ) { MRUList::addTask(&lnk); if ( hasVisibleWindow(app) ) QCopChannel::send("QPE/Application/" + app, "nextView()"); else QCopChannel::send("QPE/Application/" + app, "raise()"); } else { lnk.execute(); } } } void Desktop::raiseDatebook() { Config cfg( "qpe" ); //F9 'Activity' cfg.setGroup( "AppsKey" ); QString tempItem; - tempItem = cfg.readEntry( "LeftEnd" , "Calender" ); - if ( tempItem == "Calender" || tempItem.isEmpty() ) { + tempItem = cfg.readEntry( "LeftEnd" , "Calendar" ); + if ( tempItem == "Calendar" || tempItem.isEmpty() ) { tempItem = "datebook"; } QCopEnvelope e( "QPE/System", "execute(QString)" ); e << tempItem; } void Desktop::raiseContacts() { Config cfg( "qpe" ); //F10, 'Contacts' cfg.setGroup( "AppsKey" ); QString tempItem; tempItem = cfg.readEntry( "Left2nd", "Address Book" ); if ( tempItem == "Address Book" || tempItem.isEmpty() ) { tempItem = "addressbook"; } QCopEnvelope e("QPE/System","execute(QString)"); e << tempItem; } void Desktop::raiseMenu() { Config cfg( "qpe" ); //F11, 'Menu cfg.setGroup( "AppsKey" ); QString tempItem; tempItem = cfg.readEntry( "Right2nd" , "Popup Menu" ); if ( tempItem == "Popup Menu" || tempItem.isEmpty() ) { Global::terminateBuiltin( "calibrate" ); tb->startMenu()->launch(); } else { QCopEnvelope e("QPE/System","execute(QString)"); e << tempItem; } @@ -574,99 +574,99 @@ void Desktop::execAutoStart() #include <sys/ioctl.h> #include <sys/types.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <linux/ioctl.h> #include <time.h> #endif static bool blanked=FALSE; static void blankScreen() { if ( !qt_screen ) return; /* Should use a big black window instead. QGfx* g = qt_screen->screenGfx(); g->fillRect(0,0,qt_screen->width(),qt_screen->height()); delete g; */ blanked = TRUE; } static void darkScreen() { extern void qpe_setBacklight(int); qpe_setBacklight(0); // force off } void Desktop::togglePower() { - extern void qpe_setBacklight ( int ); // We need to toggle the LCD fast - no time to send a QCop + extern void qpe_setBacklight ( int ); // We need to toggle the LCD fast - no time to send a QCop - static bool excllock = false; + static bool excllock = false; - if ( excllock ) - return; + if ( excllock ) + return; - excllock = true; + excllock = true; - bool wasloggedin = loggedin; - loggedin=0; - suspendTime = QDateTime::currentDateTime(); + bool wasloggedin = loggedin; + loggedin=0; + suspendTime = QDateTime::currentDateTime(); -// qpe_setBacklight ( 0 ); // force LCD off (sandman: why ????) +// qpe_setBacklight ( 0 ); // force LCD off (sandman: why ????) - if ( wasloggedin ) - blankScreen(); + if ( wasloggedin ) + blankScreen(); - ODevice::inst ( )-> suspend ( ); + ODevice::inst ( )-> suspend ( ); - QWSServer::screenSaverActivate ( false ); + QWSServer::screenSaverActivate ( false ); - qpe_setBacklight ( -3 ); // force LCD on + qpe_setBacklight ( -3 ); // force LCD on - { - QCopEnvelope("QPE/Card", "mtabChanged()" ); // might have changed while asleep - } + { + QCopEnvelope("QPE/Card", "mtabChanged()" ); // might have changed while asleep + } - if ( wasloggedin ) - login(TRUE); + if ( wasloggedin ) + login(TRUE); - execAutoStart(); - //qcopBridge->closeOpenConnections(); + execAutoStart(); + //qcopBridge->closeOpenConnections(); - excllock = false; + excllock = false; } void Desktop::toggleLight() { QCopEnvelope e("QPE/System", "setBacklight(int)"); e << -2; // toggle } void Desktop::toggleSymbolInput() { tb->toggleSymbolInput(); } void Desktop::toggleNumLockState() { tb->toggleNumLockState(); } void Desktop::toggleCapsLockState() { tb->toggleCapsLockState(); } void Desktop::styleChange( QStyle &s ) { QWidget::styleChange( s ); int displayw = qApp->desktop()->width(); int displayh = qApp->desktop()->height(); QSize sz = tb->sizeHint(); tb->setGeometry( 0, displayh-sz.height(), displayw, sz.height() ); |