summaryrefslogtreecommitdiff
path: root/noncore/unsupported/mail2/accounteditor.cpp
Side-by-side diff
Diffstat (limited to 'noncore/unsupported/mail2/accounteditor.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/mail2/accounteditor.cpp15
1 files changed, 15 insertions, 0 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 @@
#include <qmessagebox.h>
+#include <qtoolbutton.h>
#include <qtabwidget.h>
@@ -8,2 +9,4 @@
+#include <qpe/resource.h>
+
#include "accounteditor.h"
@@ -15,2 +18,6 @@ AccountEditor::AccountEditor(Account account, QWidget *parent, const char *name,
TabWidget2->removePage(sslTab);
+ showPasswd->setPixmap(Resource::loadPixmap("mail/showpasswd"));
+
+ connect(showPasswd, SIGNAL(toggled(bool)),
+ SLOT(showPasswdToggled(bool)));
@@ -19,2 +26,10 @@ AccountEditor::AccountEditor(Account account, QWidget *parent, const char *name,
+void AccountEditor::showPasswdToggled(bool toggled)
+{
+ if (toggled)
+ pass->setEchoMode(QLineEdit::Normal);
+ else
+ pass->setEchoMode(QLineEdit::Password);
+}
+
void AccountEditor::accept()