author | sandman <sandman> | 2002-09-30 21:37:26 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-09-30 21:37:26 (UTC) |
commit | 9208485864ccbd2a12160334cef302874b50043a (patch) (unidiff) | |
tree | 14a6017f54a86c1be53c87a8ed2b277b62dbcef1 | |
parent | 3c6afa049f07c7e6311b3c88faf8a200827f3452 (diff) | |
download | opie-9208485864ccbd2a12160334cef302874b50043a.zip opie-9208485864ccbd2a12160334cef302874b50043a.tar.gz opie-9208485864ccbd2a12160334cef302874b50043a.tar.bz2 |
misc. cleanups
-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 | |||
@@ -35,4 +35,7 @@ extern "C" { | |||
35 | #include "inputmethods.h" | 35 | #include "inputmethods.h" |
36 | 36 | ||
37 | using namespace Opie; | ||
38 | |||
39 | |||
37 | LoginWindowImpl::LoginWindowImpl ( ) : LoginWindow ( 0, "LOGIN-WINDOW", WStyle_Customize | WStyle_NoBorder | WDestructiveClose ) | 40 | LoginWindowImpl::LoginWindowImpl ( ) : LoginWindow ( 0, "LOGIN-WINDOW", WStyle_Customize | WStyle_NoBorder | WDestructiveClose ) |
38 | { | 41 | { |
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 | |||
@@ -22,4 +22,6 @@ | |||
22 | #include "calibrate.h" | 22 | #include "calibrate.h" |
23 | 23 | ||
24 | using namespace Opie; | ||
25 | |||
24 | int login_main ( int argc, char **argv ); | 26 | int login_main ( int argc, char **argv ); |
25 | void sigusr1 ( int sig ); | 27 | void sigusr1 ( int sig ); |
@@ -91,5 +93,5 @@ public: | |||
91 | 93 | ||
92 | // Make sure the LCD is in fact on, (if opie was killed while the LCD is off it would still be off) | 94 | // Make sure the LCD is in fact on, (if opie was killed while the LCD is off it would still be off) |
93 | ODevice::inst ( ) -> setDisplayStatus ( true ); | 95 | ODevice::inst ( )-> setDisplayStatus ( true ); |
94 | } | 96 | } |
95 | void restore() | 97 | void restore() |
@@ -98,5 +100,5 @@ public: | |||
98 | ODevice::inst ( ) -> setDisplayStatus ( true ); | 100 | ODevice::inst ( ) -> setDisplayStatus ( true ); |
99 | 101 | ||
100 | setBacklight ( -1 ); | 102 | setBacklight ( -3 ); |
101 | } | 103 | } |
102 | bool save( int level ) | 104 | bool save( int level ) |
@@ -190,9 +192,4 @@ int login_main ( int argc, char **argv ) | |||
190 | ODevice::inst ( )-> setSoftSuspend ( true ); | 192 | ODevice::inst ( )-> setSoftSuspend ( true ); |
191 | 193 | ||
192 | { | ||
193 | QCopEnvelope e("QPE/System", "setBacklight(int)" ); | ||
194 | e << -3; // Forced on | ||
195 | } | ||
196 | |||
197 | #if defined(QT_QWS_CASSIOPEIA) || defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX) | 194 | #if defined(QT_QWS_CASSIOPEIA) || defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX) |
198 | if ( !QFile::exists ( "/etc/pointercal" )) { | 195 | if ( !QFile::exists ( "/etc/pointercal" )) { |
@@ -204,9 +201,9 @@ int login_main ( int argc, char **argv ) | |||
204 | #endif | 201 | #endif |
205 | 202 | ||
206 | |||
207 | LoginScreenSaver *saver = new LoginScreenSaver; | 203 | LoginScreenSaver *saver = new LoginScreenSaver; |
208 | 204 | ||
209 | saver-> setIntervals ( ); | 205 | saver-> setIntervals ( ); |
210 | QWSServer::setScreenSaver ( saver ); | 206 | QWSServer::setScreenSaver ( saver ); |
207 | saver-> restore ( ); | ||
211 | 208 | ||
212 | 209 | ||