summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore 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
@@ -4,2 +4,3 @@
4#include <qmessagebox.h> 4#include <qmessagebox.h>
5#include <qtoolbutton.h>
5#include <qtabwidget.h> 6#include <qtabwidget.h>
@@ -8,2 +9,4 @@
8 9
10#include <qpe/resource.h>
11
9#include "accounteditor.h" 12#include "accounteditor.h"
@@ -15,2 +18,6 @@ AccountEditor::AccountEditor(Account account, QWidget *parent, const char *name,
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
@@ -19,2 +26,10 @@ AccountEditor::AccountEditor(Account account, QWidget *parent, const char *name,
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()
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
@@ -17,2 +17,3 @@ protected slots:
17 void accept(); 17 void accept();
18 void showPasswdToggled(bool toggled);
18 19
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
@@ -13,3 +13,3 @@
13 <y>0</y> 13 <y>0</y>
14 <width>243</width> 14 <width>239</width>
15 <height>320</height> 15 <height>320</height>
@@ -67,14 +67,3 @@
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>
@@ -82,3 +71,3 @@
82 <name>name</name> 71 <name>name</name>
83 <cstring>imapServer</cstring> 72 <cstring>imapPort</cstring>
84 </property> 73 </property>
@@ -96,3 +85,14 @@
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>
@@ -100,3 +100,3 @@
100 <name>name</name> 100 <name>name</name>
101 <cstring>imapPort</cstring> 101 <cstring>imapServer</cstring>
102 </property> 102 </property>
@@ -124,3 +124,26 @@
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>
@@ -131,3 +154,3 @@
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>
@@ -193,3 +216,3 @@
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>
@@ -200,3 +223,3 @@
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>
@@ -211,3 +234,3 @@
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>
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