author | sandman <sandman> | 2002-10-06 22:19:48 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-10-06 22:19:48 (UTC) |
commit | 685c08f1c48813f9d222446f0516b8e20635607e (patch) (unidiff) | |
tree | 52792fd22ebaa26ee82ac500c0250d6ffea941f8 | |
parent | a60fbe6f441b906489984b0dbc239259adacdcbc (diff) | |
download | opie-685c08f1c48813f9d222446f0516b8e20635607e.zip opie-685c08f1c48813f9d222446f0516b8e20635607e.tar.gz opie-685c08f1c48813f9d222446f0516b8e20635607e.tar.bz2 |
- password line-edit now gets focus on user change
- the "OPIE - please wait" logo is displayed while the launcher is loading
-rw-r--r-- | core/opie-login/loginwindow.ui | 6 | ||||
-rw-r--r-- | core/opie-login/loginwindowimpl.cpp | 19 |
2 files changed, 25 insertions, 0 deletions
diff --git a/core/opie-login/loginwindow.ui b/core/opie-login/loginwindow.ui index edd0819..5a35c8d 100644 --- a/core/opie-login/loginwindow.ui +++ b/core/opie-login/loginwindow.ui | |||
@@ -407,2 +407,8 @@ | |||
407 | </connection> | 407 | </connection> |
408 | <connection> | ||
409 | <sender>m_user</sender> | ||
410 | <signal>activated(int)</signal> | ||
411 | <receiver>m_password</receiver> | ||
412 | <slot>setFocus()</slot> | ||
413 | </connection> | ||
408 | <slot access="public">login()</slot> | 414 | <slot access="public">login()</slot> |
diff --git a/core/opie-login/loginwindowimpl.cpp b/core/opie-login/loginwindowimpl.cpp index 63baaa6..c59338f 100644 --- a/core/opie-login/loginwindowimpl.cpp +++ b/core/opie-login/loginwindowimpl.cpp | |||
@@ -11,3 +11,5 @@ | |||
11 | #include <qmessagebox.h> | 11 | #include <qmessagebox.h> |
12 | #include <qimage.h> | ||
12 | 13 | ||
14 | #include <qpe/resource.h> | ||
13 | #include <qpe/qcopenvelope_qws.h> | 15 | #include <qpe/qcopenvelope_qws.h> |
@@ -90,2 +92,3 @@ void LoginWindowImpl::toggleEchoMode ( bool t ) | |||
90 | 92 | ||
93 | |||
91 | QStringList LoginWindowImpl::getAllUsers ( ) | 94 | QStringList LoginWindowImpl::getAllUsers ( ) |
@@ -302,2 +305,15 @@ void LoginWindowImpl::login ( ) | |||
302 | if ( changeIdentity ( user )) { | 305 | if ( changeIdentity ( user )) { |
306 | // Draw a big wait icon, the image can be altered in later revisions | ||
307 | QWidget *d = QApplication::desktop ( ); | ||
308 | m_input-> hideInputMethod ( ); | ||
309 | |||
310 | QImage img = Resource::loadImage( "launcher/new_wait" ); | ||
311 | QPixmap pix; | ||
312 | pix. convertFromImage ( img ); | ||
313 | QLabel *w = new QLabel ( 0, "wait hack!", WStyle_Customize | WStyle_NoBorder | WStyle_Tool ); | ||
314 | w-> setPixmap ( pix ); | ||
315 | w-> setAlignment ( AlignCenter ); | ||
316 | w-> showMaximized ( ); | ||
317 | qApp-> processEvents ( ); | ||
318 | |||
303 | char *opie = ::getenv ( "OPIEDIR" ); | 319 | char *opie = ::getenv ( "OPIEDIR" ); |
@@ -311,2 +327,5 @@ void LoginWindowImpl::login ( ) | |||
311 | 327 | ||
328 | w-> hide ( ); | ||
329 | delete w; | ||
330 | |||
312 | QMessageBox::critical ( this, tr( "Failure" ), tr( "Could not start OPIE\n(%1)." ). arg ( arg )); | 331 | QMessageBox::critical ( this, tr( "Failure" ), tr( "Could not start OPIE\n(%1)." ). arg ( arg )); |