From 3b37149813d940535b12ba3b1edd938c41804a1b Mon Sep 17 00:00:00 2001 From: harlekin Date: Mon, 08 Dec 2003 13:37:32 +0000 Subject: beginning of the new mailer --- (limited to 'noncore/net/mail/libmailwrapper/logindialog.cpp') 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 + +#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(); +} -- cgit v0.9.0.2