summaryrefslogtreecommitdiff
path: root/noncore/net/mail/libmailwrapper/logindialog.cpp
authorharlekin <harlekin>2003-12-08 13:37:32 (UTC)
committer harlekin <harlekin>2003-12-08 13:37:32 (UTC)
commit3b37149813d940535b12ba3b1edd938c41804a1b (patch) (side-by-side diff)
tree0e35a3b28fb147514f22a6a6cb5aaf246e4c5670 /noncore/net/mail/libmailwrapper/logindialog.cpp
parent3d49fc2f7bba9c9e8856e5f4f7ec6c15ef84c252 (diff)
downloadopie-3b37149813d940535b12ba3b1edd938c41804a1b.zip
opie-3b37149813d940535b12ba3b1edd938c41804a1b.tar.gz
opie-3b37149813d940535b12ba3b1edd938c41804a1b.tar.bz2
beginning of the new mailer
Diffstat (limited to 'noncore/net/mail/libmailwrapper/logindialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/libmailwrapper/logindialog.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/noncore/net/mail/libmailwrapper/logindialog.cpp b/noncore/net/mail/libmailwrapper/logindialog.cpp
new file mode 100644
index 0000000..d2c6a07
--- a/dev/null
+++ b/noncore/net/mail/libmailwrapper/logindialog.cpp
@@ -0,0 +1,26 @@
+#include <qlineedit.h>
+
+#include "logindialog.h"
+
+LoginDialog::LoginDialog( QString user, QString pass, QWidget *parent, const char *name, bool modal, WFlags flags )
+ : LoginDialogUI( parent, name, modal, flags )
+{
+ userLine->setText( user );
+ passLine->setText( pass );
+ _user = user;
+ _pass = pass;
+
+ if ( user.isEmpty() ) {
+ userLine->setFocus();
+ } else {
+ passLine->setFocus();
+ }
+}
+
+void LoginDialog::accept()
+{
+ _user.replace( 0, _user.length(), userLine->text() );
+ _pass.replace( 0, _pass.length(), passLine->text() );
+
+ QDialog::accept();
+}