-rw-r--r-- | core/opie-login/loginwindowimpl.cpp | 3 | ||||
-rw-r--r-- | core/opie-login/main.cpp | 13 |
2 files changed, 8 insertions, 8 deletions
diff --git a/core/opie-login/loginwindowimpl.cpp b/core/opie-login/loginwindowimpl.cpp index f24ebb3..63baaa6 100644 --- a/core/opie-login/loginwindowimpl.cpp +++ b/core/opie-login/loginwindowimpl.cpp @@ -33,8 +33,11 @@ extern "C" { #include "loginwindowimpl.h" #include "inputmethods.h" +using namespace Opie; + + LoginWindowImpl::LoginWindowImpl ( ) : LoginWindow ( 0, "LOGIN-WINDOW", WStyle_Customize | WStyle_NoBorder | WDestructiveClose ) { QPopupMenu *pop = new QPopupMenu ( this ); pop-> insertItem ( tr( "Restart" ), this, SLOT( restart ( ))); diff --git a/core/opie-login/main.cpp b/core/opie-login/main.cpp index 718009a..df9451d 100644 --- a/core/opie-login/main.cpp +++ b/core/opie-login/main.cpp @@ -20,8 +20,10 @@ #include "loginwindowimpl.h" #include "calibrate.h" +using namespace Opie; + int login_main ( int argc, char **argv ); void sigusr1 ( int sig ); void exit_closelog ( ); @@ -89,16 +91,16 @@ public: m_backlight_bright = -1; m_backlight_forcedoff = false; // Make sure the LCD is in fact on, (if opie was killed while the LCD is off it would still be off) - ODevice::inst ( ) -> setDisplayStatus ( true ); + ODevice::inst ( )-> setDisplayStatus ( true ); } void restore() { if ( !m_lcd_status ) // We must have turned it off ODevice::inst ( ) -> setDisplayStatus ( true ); - setBacklight ( -1 ); + setBacklight ( -3 ); } bool save( int level ) { switch ( level ) { @@ -188,13 +190,8 @@ int login_main ( int argc, char **argv ) app. setStyle ( new QPEStyle ( )); ODevice::inst ( )-> setSoftSuspend ( true ); - { - QCopEnvelope e("QPE/System", "setBacklight(int)" ); - e << -3; // Forced on - } - #if defined(QT_QWS_CASSIOPEIA) || defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX) if ( !QFile::exists ( "/etc/pointercal" )) { // Make sure calibration widget starts on top. Calibrate *cal = new Calibrate; @@ -202,13 +199,13 @@ int login_main ( int argc, char **argv ) delete cal; } #endif - LoginScreenSaver *saver = new LoginScreenSaver; saver-> setIntervals ( ); QWSServer::setScreenSaver ( saver ); + saver-> restore ( ); LoginWindowImpl *lw = new LoginWindowImpl ( ); app. setMainWidget ( lw ); |