author | alwin <alwin> | 2004-01-04 02:08:40 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-01-04 02:08:40 (UTC) |
commit | 5573d6606b5243890fd00bf858ed21a87f00bfc4 (patch) (side-by-side diff) | |
tree | 497e355c87a9eb42a1fbc3c40dbb1ff1d8839653 | |
parent | 16d8d88dc09477d871f92d283aa59c8206456a26 (diff) | |
download | opie-5573d6606b5243890fd00bf858ed21a87f00bfc4.zip opie-5573d6606b5243890fd00bf858ed21a87f00bfc4.tar.gz opie-5573d6606b5243890fd00bf858ed21a87f00bfc4.tar.bz2 |
moved to shared lib
-rw-r--r-- | noncore/net/mail/logindialog.cpp | 26 | ||||
-rw-r--r-- | noncore/net/mail/logindialog.h | 23 | ||||
-rw-r--r-- | noncore/net/mail/logindialogui.ui | 83 |
3 files changed, 0 insertions, 132 deletions
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 <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(); -} 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 @@ -<!DOCTYPE UI><UI> -<class>LoginDialogUI</class> -<widget> - <class>QDialog</class> - <property stdset="1"> - <name>name</name> - <cstring>LoginDialogUI</cstring> - </property> - <property stdset="1"> - <name>geometry</name> - <rect> - <x>0</x> - <y>0</y> - <width>196</width> - <height>110</height> - </rect> - </property> - <property stdset="1"> - <name>caption</name> - <string>Login</string> - </property> - <property> - <name>layoutMargin</name> - </property> - <property> - <name>layoutSpacing</name> - </property> - <grid> - <property stdset="1"> - <name>margin</name> - <number>4</number> - </property> - <property stdset="1"> - <name>spacing</name> - <number>3</number> - </property> - <widget row="0" column="0" > - <class>QLabel</class> - <property stdset="1"> - <name>name</name> - <cstring>userLabel</cstring> - </property> - <property stdset="1"> - <name>text</name> - <string>User</string> - </property> - </widget> - <widget row="1" column="0" > - <class>QLineEdit</class> - <property stdset="1"> - <name>name</name> - <cstring>userLine</cstring> - </property> - </widget> - <widget row="3" column="0" > - <class>QLineEdit</class> - <property stdset="1"> - <name>name</name> - <cstring>passLine</cstring> - </property> - <property stdset="1"> - <name>echoMode</name> - <enum>Password</enum> - </property> - </widget> - <widget row="2" column="0" > - <class>QLabel</class> - <property stdset="1"> - <name>name</name> - <cstring>passLabel</cstring> - </property> - <property stdset="1"> - <name>text</name> - <string>Password</string> - </property> - </widget> - </grid> -</widget> -<tabstops> - <tabstop>userLine</tabstop> - <tabstop>passLine</tabstop> -</tabstops> -</UI> |