author | alwin <alwin> | 2004-01-04 02:08:40 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-01-04 02:08:40 (UTC) |
commit | 5573d6606b5243890fd00bf858ed21a87f00bfc4 (patch) (unidiff) | |
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 @@ | |||
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 | } | ||
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 @@ | |||
1 | #ifndef LOGINDIALOG_H | ||
2 | #define LOGINDIALOG_H | ||
3 | |||
4 | #include "logindialogui.h" | ||
5 | |||
6 | class LoginDialog : public LoginDialogUI | ||
7 | { | ||
8 | Q_OBJECT | ||
9 | |||
10 | public: | ||
11 | LoginDialog( QString user, QString pass, QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags flags = 0 ); | ||
12 | QString getUser() { return _user; } | ||
13 | QString getPassword() { return _pass; } | ||
14 | |||
15 | protected slots: | ||
16 | void accept(); | ||
17 | |||
18 | private: | ||
19 | QString _user, _pass; | ||
20 | |||
21 | }; | ||
22 | |||
23 | #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 @@ | |||
1 | <!DOCTYPE UI><UI> | ||
2 | <class>LoginDialogUI</class> | ||
3 | <widget> | ||
4 | <class>QDialog</class> | ||
5 | <property stdset="1"> | ||
6 | <name>name</name> | ||
7 | <cstring>LoginDialogUI</cstring> | ||
8 | </property> | ||
9 | <property stdset="1"> | ||
10 | <name>geometry</name> | ||
11 | <rect> | ||
12 | <x>0</x> | ||
13 | <y>0</y> | ||
14 | <width>196</width> | ||
15 | <height>110</height> | ||
16 | </rect> | ||
17 | </property> | ||
18 | <property stdset="1"> | ||
19 | <name>caption</name> | ||
20 | <string>Login</string> | ||
21 | </property> | ||
22 | <property> | ||
23 | <name>layoutMargin</name> | ||
24 | </property> | ||
25 | <property> | ||
26 | <name>layoutSpacing</name> | ||
27 | </property> | ||
28 | <grid> | ||
29 | <property stdset="1"> | ||
30 | <name>margin</name> | ||
31 | <number>4</number> | ||
32 | </property> | ||
33 | <property stdset="1"> | ||
34 | <name>spacing</name> | ||
35 | <number>3</number> | ||
36 | </property> | ||
37 | <widget row="0" column="0" > | ||
38 | <class>QLabel</class> | ||
39 | <property stdset="1"> | ||
40 | <name>name</name> | ||
41 | <cstring>userLabel</cstring> | ||
42 | </property> | ||
43 | <property stdset="1"> | ||
44 | <name>text</name> | ||
45 | <string>User</string> | ||
46 | </property> | ||
47 | </widget> | ||
48 | <widget row="1" column="0" > | ||
49 | <class>QLineEdit</class> | ||
50 | <property stdset="1"> | ||
51 | <name>name</name> | ||
52 | <cstring>userLine</cstring> | ||
53 | </property> | ||
54 | </widget> | ||
55 | <widget row="3" column="0" > | ||
56 | <class>QLineEdit</class> | ||
57 | <property stdset="1"> | ||
58 | <name>name</name> | ||
59 | <cstring>passLine</cstring> | ||
60 | </property> | ||
61 | <property stdset="1"> | ||
62 | <name>echoMode</name> | ||
63 | <enum>Password</enum> | ||
64 | </property> | ||
65 | </widget> | ||
66 | <widget row="2" column="0" > | ||
67 | <class>QLabel</class> | ||
68 | <property stdset="1"> | ||
69 | <name>name</name> | ||
70 | <cstring>passLabel</cstring> | ||
71 | </property> | ||
72 | <property stdset="1"> | ||
73 | <name>text</name> | ||
74 | <string>Password</string> | ||
75 | </property> | ||
76 | </widget> | ||
77 | </grid> | ||
78 | </widget> | ||
79 | <tabstops> | ||
80 | <tabstop>userLine</tabstop> | ||
81 | <tabstop>passLine</tabstop> | ||
82 | </tabstops> | ||
83 | </UI> | ||