summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/unsupported/mail2/accounteditor.cpp15
-rw-r--r--noncore/unsupported/mail2/accounteditor.h1
-rw-r--r--noncore/unsupported/mail2/accounteditorbase.ui65
-rw-r--r--pics/mail/showpasswd.pngbin0 -> 217 bytes
4 files changed, 60 insertions, 21 deletions
diff --git a/noncore/unsupported/mail2/accounteditor.cpp b/noncore/unsupported/mail2/accounteditor.cpp
index 8230a69..5d80693 100644
--- a/noncore/unsupported/mail2/accounteditor.cpp
+++ b/noncore/unsupported/mail2/accounteditor.cpp
@@ -2,10 +2,13 @@
2#include <qbuttongroup.h> 2#include <qbuttongroup.h>
3#include <qradiobutton.h> 3#include <qradiobutton.h>
4#include <qmessagebox.h> 4#include <qmessagebox.h>
5#include <qtoolbutton.h>
5#include <qtabwidget.h> 6#include <qtabwidget.h>
6#include <qlineedit.h> 7#include <qlineedit.h>
7#include <qcheckbox.h> 8#include <qcheckbox.h>
8 9
10#include <qpe/resource.h>
11
9#include "accounteditor.h" 12#include "accounteditor.h"
10#include "miscfunctions.h" 13#include "miscfunctions.h"
11 14
@@ -13,10 +16,22 @@ AccountEditor::AccountEditor(Account account, QWidget *parent, const char *name,
13 : AccountEditorBase(parent, name, modal, fl), _account(account) 16 : AccountEditorBase(parent, name, modal, fl), _account(account)
14{ 17{
15 TabWidget2->removePage(sslTab); 18 TabWidget2->removePage(sslTab);
19 showPasswd->setPixmap(Resource::loadPixmap("mail/showpasswd"));
20
21 connect(showPasswd, SIGNAL(toggled(bool)),
22 SLOT(showPasswdToggled(bool)));
16 23
17 fillValues(); 24 fillValues();
18} 25}
19 26
27void AccountEditor::showPasswdToggled(bool toggled)
28{
29 if (toggled)
30 pass->setEchoMode(QLineEdit::Normal);
31 else
32 pass->setEchoMode(QLineEdit::Password);
33}
34
20void AccountEditor::accept() 35void AccountEditor::accept()
21{ 36{
22 int numLf = 0; 37 int numLf = 0;
diff --git a/noncore/unsupported/mail2/accounteditor.h b/noncore/unsupported/mail2/accounteditor.h
index 4a2bda3..9acca2d 100644
--- a/noncore/unsupported/mail2/accounteditor.h
+++ b/noncore/unsupported/mail2/accounteditor.h
@@ -15,6 +15,7 @@ public:
15 15
16protected slots: 16protected slots:
17 void accept(); 17 void accept();
18 void showPasswdToggled(bool toggled);
18 19
19protected: 20protected:
20 void fillValues(); 21 void fillValues();
diff --git a/noncore/unsupported/mail2/accounteditorbase.ui b/noncore/unsupported/mail2/accounteditorbase.ui
index fe9f2a4..8341e72 100644
--- a/noncore/unsupported/mail2/accounteditorbase.ui
+++ b/noncore/unsupported/mail2/accounteditorbase.ui
@@ -11,7 +11,7 @@
11 <rect> 11 <rect>
12 <x>0</x> 12 <x>0</x>
13 <y>0</y> 13 <y>0</y>
14 <width>243</width> 14 <width>239</width>
15 <height>320</height> 15 <height>320</height>
16 </rect> 16 </rect>
17 </property> 17 </property>
@@ -65,22 +65,11 @@
65 <name>spacing</name> 65 <name>spacing</name>
66 <number>3</number> 66 <number>3</number>
67 </property> 67 </property>
68 <widget row="0" column="0" > 68 <widget row="1" column="1" rowspan="1" colspan="2" >
69 <class>QLabel</class>
70 <property stdset="1">
71 <name>name</name>
72 <cstring>TextLabel2</cstring>
73 </property>
74 <property stdset="1">
75 <name>text</name>
76 <string>&lt;b&gt;IMAP:</string>
77 </property>
78 </widget>
79 <widget row="0" column="1" >
80 <class>QLineEdit</class> 69 <class>QLineEdit</class>
81 <property stdset="1"> 70 <property stdset="1">
82 <name>name</name> 71 <name>name</name>
83 <cstring>imapServer</cstring> 72 <cstring>imapPort</cstring>
84 </property> 73 </property>
85 </widget> 74 </widget>
86 <widget row="1" column="0" > 75 <widget row="1" column="0" >
@@ -94,11 +83,22 @@
94 <string>&lt;b&gt;Port:</string> 83 <string>&lt;b&gt;Port:</string>
95 </property> 84 </property>
96 </widget> 85 </widget>
97 <widget row="1" column="1" > 86 <widget row="0" column="0" >
87 <class>QLabel</class>
88 <property stdset="1">
89 <name>name</name>
90 <cstring>TextLabel2</cstring>
91 </property>
92 <property stdset="1">
93 <name>text</name>
94 <string>&lt;b&gt;IMAP:</string>
95 </property>
96 </widget>
97 <widget row="0" column="1" rowspan="1" colspan="2" >
98 <class>QLineEdit</class> 98 <class>QLineEdit</class>
99 <property stdset="1"> 99 <property stdset="1">
100 <name>name</name> 100 <name>name</name>
101 <cstring>imapPort</cstring> 101 <cstring>imapServer</cstring>
102 </property> 102 </property>
103 </widget> 103 </widget>
104 <spacer row="8" column="1" > 104 <spacer row="8" column="1" >
@@ -122,14 +122,37 @@
122 </size> 122 </size>
123 </property> 123 </property>
124 </spacer> 124 </spacer>
125 <widget row="7" column="1" > 125 <widget row="4" column="2" >
126 <class>QToolButton</class>
127 <property stdset="1">
128 <name>name</name>
129 <cstring>showPasswd</cstring>
130 </property>
131 <property stdset="1">
132 <name>text</name>
133 <string>[--]</string>
134 </property>
135 <property stdset="1">
136 <name>pixmap</name>
137 <pixmap></pixmap>
138 </property>
139 <property stdset="1">
140 <name>toggleButton</name>
141 <bool>true</bool>
142 </property>
143 <property stdset="1">
144 <name>toggleButton</name>
145 <bool>true</bool>
146 </property>
147 </widget>
148 <widget row="7" column="1" rowspan="1" colspan="2" >
126 <class>QLineEdit</class> 149 <class>QLineEdit</class>
127 <property stdset="1"> 150 <property stdset="1">
128 <name>name</name> 151 <name>name</name>
129 <cstring>smtpPort</cstring> 152 <cstring>smtpPort</cstring>
130 </property> 153 </property>
131 </widget> 154 </widget>
132 <widget row="6" column="1" > 155 <widget row="6" column="1" rowspan="1" colspan="2" >
133 <class>QLineEdit</class> 156 <class>QLineEdit</class>
134 <property stdset="1"> 157 <property stdset="1">
135 <name>name</name> 158 <name>name</name>
@@ -191,14 +214,14 @@
191 <enum>Password</enum> 214 <enum>Password</enum>
192 </property> 215 </property>
193 </widget> 216 </widget>
194 <widget row="3" column="1" > 217 <widget row="3" column="1" rowspan="1" colspan="2" >
195 <class>QLineEdit</class> 218 <class>QLineEdit</class>
196 <property stdset="1"> 219 <property stdset="1">
197 <name>name</name> 220 <name>name</name>
198 <cstring>user</cstring> 221 <cstring>user</cstring>
199 </property> 222 </property>
200 </widget> 223 </widget>
201 <widget row="2" column="0" rowspan="1" colspan="2" > 224 <widget row="2" column="0" rowspan="1" colspan="3" >
202 <class>Line</class> 225 <class>Line</class>
203 <property stdset="1"> 226 <property stdset="1">
204 <name>name</name> 227 <name>name</name>
@@ -209,7 +232,7 @@
209 <enum>Horizontal</enum> 232 <enum>Horizontal</enum>
210 </property> 233 </property>
211 </widget> 234 </widget>
212 <widget row="5" column="0" rowspan="1" colspan="2" > 235 <widget row="5" column="0" rowspan="1" colspan="3" >
213 <class>Line</class> 236 <class>Line</class>
214 <property stdset="1"> 237 <property stdset="1">
215 <name>name</name> 238 <name>name</name>
diff --git a/pics/mail/showpasswd.png b/pics/mail/showpasswd.png
new file mode 100644
index 0000000..7d5c08b
--- a/dev/null
+++ b/pics/mail/showpasswd.png
Binary files differ