Diffstat (limited to 'noncore/unsupported/mail2/accounteditor.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/unsupported/mail2/accounteditor.cpp | 15 |
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 | |||
@@ -1,25 +1,40 @@ | |||
1 | #include <qmultilineedit.h> | 1 | #include <qmultilineedit.h> |
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 | ||
12 | AccountEditor::AccountEditor(Account account, QWidget *parent, const char *name, bool modal, WFlags fl) | 15 | AccountEditor::AccountEditor(Account account, QWidget *parent, const char *name, bool modal, WFlags fl) |
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 | ||
27 | void AccountEditor::showPasswdToggled(bool toggled) | ||
28 | { | ||
29 | if (toggled) | ||
30 | pass->setEchoMode(QLineEdit::Normal); | ||
31 | else | ||
32 | pass->setEchoMode(QLineEdit::Password); | ||
33 | } | ||
34 | |||
20 | void AccountEditor::accept() | 35 | void AccountEditor::accept() |
21 | { | 36 | { |
22 | int numLf = 0; | 37 | int numLf = 0; |
23 | for (unsigned int i = 0; i <= signature->text().length(); i++) { | 38 | for (unsigned int i = 0; i <= signature->text().length(); i++) { |
24 | if (signature->text()[i] == '\n') numLf++; | 39 | if (signature->text()[i] == '\n') numLf++; |
25 | } | 40 | } |