From 5573d6606b5243890fd00bf858ed21a87f00bfc4 Mon Sep 17 00:00:00 2001 From: alwin Date: Sun, 04 Jan 2004 02:08:40 +0000 Subject: moved to shared lib --- (limited to 'noncore/net') diff --git a/noncore/net/mail/logindialog.cpp b/noncore/net/mail/logindialog.cpp deleted file mode 100644 index d2c6a07..0000000 --- a/noncore/net/mail/logindialog.cpp +++ b/dev/null @@ -1,26 +0,0 @@ -#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(); -} diff --git a/noncore/net/mail/logindialog.h b/noncore/net/mail/logindialog.h deleted file mode 100644 index 7a0d1b0..0000000 --- a/noncore/net/mail/logindialog.h +++ b/dev/null @@ -1,23 +0,0 @@ -#ifndef LOGINDIALOG_H -#define LOGINDIALOG_H - -#include "logindialogui.h" - -class LoginDialog : public LoginDialogUI -{ - Q_OBJECT - -public: - LoginDialog( QString user, QString pass, QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags flags = 0 ); - QString getUser() { return _user; } - QString getPassword() { return _pass; } - -protected slots: - void accept(); - -private: - QString _user, _pass; - -}; - -#endif diff --git a/noncore/net/mail/logindialogui.ui b/noncore/net/mail/logindialogui.ui deleted file mode 100644 index 565f777..0000000 --- a/noncore/net/mail/logindialogui.ui +++ b/dev/null @@ -1,83 +0,0 @@ - -LoginDialogUI - - QDialog - - name - LoginDialogUI - - - geometry - - 0 - 0 - 196 - 110 - - - - caption - Login - - - layoutMargin - - - layoutSpacing - - - - margin - 4 - - - spacing - 3 - - - QLabel - - name - userLabel - - - text - User - - - - QLineEdit - - name - userLine - - - - QLineEdit - - name - passLine - - - echoMode - Password - - - - QLabel - - name - passLabel - - - text - Password - - - - - - userLine - passLine - - -- cgit v0.9.0.2