author | llornkcor <llornkcor> | 2002-09-02 13:59:25 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-09-02 13:59:25 (UTC) |
commit | ffa6856b8ccbaa44d950b7f311011c990f656d47 (patch) (unidiff) | |
tree | dbfd44501dd6e70a2252b23e0fe50d81394ebc26 /core/launcher/desktop.cpp | |
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 | |||
@@ -499,14 +499,14 @@ void Desktop::executeOrModify(const QString& appLnkFile) | |||
499 | 499 | ||
500 | void Desktop::raiseDatebook() | 500 | void Desktop::raiseDatebook() |
501 | { | 501 | { |
502 | Config cfg( "qpe" ); //F9 'Activity' | 502 | Config cfg( "qpe" ); //F9 'Activity' |
503 | cfg.setGroup( "AppsKey" ); | 503 | cfg.setGroup( "AppsKey" ); |
504 | QString tempItem; | 504 | QString tempItem; |
505 | tempItem = cfg.readEntry( "LeftEnd" , "Calender" ); | 505 | tempItem = cfg.readEntry( "LeftEnd" , "Calendar" ); |
506 | if ( tempItem == "Calender" || tempItem.isEmpty() ) { | 506 | if ( tempItem == "Calendar" || tempItem.isEmpty() ) { |
507 | tempItem = "datebook"; | 507 | tempItem = "datebook"; |
508 | } | 508 | } |
509 | QCopEnvelope e( "QPE/System", "execute(QString)" ); | 509 | QCopEnvelope e( "QPE/System", "execute(QString)" ); |
510 | e << tempItem; | 510 | e << tempItem; |
511 | } | 511 | } |
512 | 512 | ||
@@ -600,47 +600,47 @@ static void darkScreen() | |||
600 | qpe_setBacklight(0); // force off | 600 | qpe_setBacklight(0); // force off |
601 | } | 601 | } |
602 | 602 | ||
603 | 603 | ||
604 | void Desktop::togglePower() | 604 | void Desktop::togglePower() |
605 | { | 605 | { |
606 | extern void qpe_setBacklight ( int ); // We need to toggle the LCD fast - no time to send a QCop | 606 | extern void qpe_setBacklight ( int ); // We need to toggle the LCD fast - no time to send a QCop |
607 | 607 | ||
608 | static bool excllock = false; | 608 | static bool excllock = false; |
609 | 609 | ||
610 | if ( excllock ) | 610 | if ( excllock ) |
611 | return; | 611 | return; |
612 | 612 | ||
613 | excllock = true; | 613 | excllock = true; |
614 | 614 | ||
615 | bool wasloggedin = loggedin; | 615 | bool wasloggedin = loggedin; |
616 | loggedin=0; | 616 | loggedin=0; |
617 | suspendTime = QDateTime::currentDateTime(); | 617 | suspendTime = QDateTime::currentDateTime(); |
618 | 618 | ||
619 | //qpe_setBacklight ( 0 ); // force LCD off (sandman: why ????) | 619 | // qpe_setBacklight ( 0 ); // force LCD off (sandman: why ????) |
620 | 620 | ||
621 | if ( wasloggedin ) | 621 | if ( wasloggedin ) |
622 | blankScreen(); | 622 | blankScreen(); |
623 | 623 | ||
624 | ODevice::inst ( )-> suspend ( ); | 624 | ODevice::inst ( )-> suspend ( ); |
625 | 625 | ||
626 | QWSServer::screenSaverActivate ( false ); | 626 | QWSServer::screenSaverActivate ( false ); |
627 | 627 | ||
628 | qpe_setBacklight ( -3 ); // force LCD on | 628 | qpe_setBacklight ( -3 ); // force LCD on |
629 | 629 | ||
630 | { | 630 | { |
631 | QCopEnvelope("QPE/Card", "mtabChanged()" ); // might have changed while asleep | 631 | QCopEnvelope("QPE/Card", "mtabChanged()" ); // might have changed while asleep |
632 | } | 632 | } |
633 | 633 | ||
634 | if ( wasloggedin ) | 634 | if ( wasloggedin ) |
635 | login(TRUE); | 635 | login(TRUE); |
636 | 636 | ||
637 | execAutoStart(); | 637 | execAutoStart(); |
638 | //qcopBridge->closeOpenConnections(); | 638 | //qcopBridge->closeOpenConnections(); |
639 | 639 | ||
640 | excllock = false; | 640 | excllock = false; |
641 | } | 641 | } |
642 | 642 | ||
643 | void Desktop::toggleLight() | 643 | void Desktop::toggleLight() |
644 | { | 644 | { |
645 | QCopEnvelope e("QPE/System", "setBacklight(int)"); | 645 | QCopEnvelope e("QPE/System", "setBacklight(int)"); |
646 | e << -2; // toggle | 646 | e << -2; // toggle |