summaryrefslogtreecommitdiff
path: root/noncore/unsupported/mail2/accounteditor.cpp
authorconber <conber>2002-06-20 17:19:56 (UTC)
committer conber <conber>2002-06-20 17:19:56 (UTC)
commit0996b7f1bcbdb05db00eadb0cdd60b2066cdd899 (patch) (side-by-side diff)
treed2b3d8dc734c5957bb4ed86dbca80ce8e975a5e6 /noncore/unsupported/mail2/accounteditor.cpp
parente0eec50bf3992d95d7060af74fa98e9630abfa4e (diff)
downloadopie-0996b7f1bcbdb05db00eadb0cdd60b2066cdd899.zip
opie-0996b7f1bcbdb05db00eadb0cdd60b2066cdd899.tar.gz
opie-0996b7f1bcbdb05db00eadb0cdd60b2066cdd899.tar.bz2
little usability improvement in accounteditor
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
@@ -2,10 +2,13 @@
#include <qbuttongroup.h>
#include <qradiobutton.h>
#include <qmessagebox.h>
+#include <qtoolbutton.h>
#include <qtabwidget.h>
#include <qlineedit.h>
#include <qcheckbox.h>
+#include <qpe/resource.h>
+
#include "accounteditor.h"
#include "miscfunctions.h"
@@ -13,10 +16,22 @@ AccountEditor::AccountEditor(Account account, QWidget *parent, const char *name,
: AccountEditorBase(parent, name, modal, fl), _account(account)
{
TabWidget2->removePage(sslTab);
+ showPasswd->setPixmap(Resource::loadPixmap("mail/showpasswd"));
+
+ connect(showPasswd, SIGNAL(toggled(bool)),
+ SLOT(showPasswdToggled(bool)));
fillValues();
}
+void AccountEditor::showPasswdToggled(bool toggled)
+{
+ if (toggled)
+ pass->setEchoMode(QLineEdit::Normal);
+ else
+ pass->setEchoMode(QLineEdit::Password);
+}
+
void AccountEditor::accept()
{
int numLf = 0;