author | harlekin <harlekin> | 2003-12-08 13:37:32 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-12-08 13:37:32 (UTC) |
commit | 3b37149813d940535b12ba3b1edd938c41804a1b (patch) (unidiff) | |
tree | 0e35a3b28fb147514f22a6a6cb5aaf246e4c5670 /noncore/net/mail/logindialog.cpp | |
parent | 3d49fc2f7bba9c9e8856e5f4f7ec6c15ef84c252 (diff) | |
download | opie-3b37149813d940535b12ba3b1edd938c41804a1b.zip opie-3b37149813d940535b12ba3b1edd938c41804a1b.tar.gz opie-3b37149813d940535b12ba3b1edd938c41804a1b.tar.bz2 |
beginning of the new mailer
Diffstat (limited to 'noncore/net/mail/logindialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/logindialog.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/noncore/net/mail/logindialog.cpp b/noncore/net/mail/logindialog.cpp new file mode 100644 index 0000000..d2c6a07 --- a/dev/null +++ b/noncore/net/mail/logindialog.cpp | |||
@@ -0,0 +1,26 @@ | |||
1 | #include <qlineedit.h> | ||
2 | |||
3 | #include "logindialog.h" | ||
4 | |||
5 | LoginDialog::LoginDialog( QString user, QString pass, QWidget *parent, const char *name, bool modal, WFlags flags ) | ||
6 | : LoginDialogUI( parent, name, modal, flags ) | ||
7 | { | ||
8 | userLine->setText( user ); | ||
9 | passLine->setText( pass ); | ||
10 | _user = user; | ||
11 | _pass = pass; | ||
12 | |||
13 | if ( user.isEmpty() ) { | ||
14 | userLine->setFocus(); | ||
15 | } else { | ||
16 | passLine->setFocus(); | ||
17 | } | ||
18 | } | ||
19 | |||
20 | void LoginDialog::accept() | ||
21 | { | ||
22 | _user.replace( 0, _user.length(), userLine->text() ); | ||
23 | _pass.replace( 0, _pass.length(), passLine->text() ); | ||
24 | |||
25 | QDialog::accept(); | ||
26 | } | ||