diff --git a/security802_1xtab.cpp b/security802_1xtab.cpp
index c6654a6..e94d672 100644
--- a/security802_1xtab.cpp
+++ b/security802_1xtab.cpp
@@ -24,6 +24,12 @@ Security802_1xTab::Security802_1xTab(QWidget *parent) :
ui->ttlsInnerAuthenticationComboBox->addItems(QStringList() << tr("PAP") << tr("CHAP") << tr("MSCHAP") << tr("MSCHAPv2"));
ui->peapVersionComboBox->addItems(QStringList() << tr("Automatic") << tr ("Zero") << tr("One"));
ui->peapInnerAuthenticationComboBox->addItems(QStringList() << tr("MSCHAPv2") << tr("MD5") << tr("GTC"));
+ connect(ui->md5ShowPasswordCheckBox, &QCheckBox::stateChanged, this, &Security802_1xTab::onMd5ShowPasswordCheckBoxToggled);
+ connect(ui->tlsShowPasswordCheckBox, &QCheckBox::stateChanged, this, &Security802_1xTab::onTlsShowPasswordCheckBoxToggled);
+ connect(ui->pwdShowPasswordCheckBox, &QCheckBox::stateChanged, this, &Security802_1xTab::onPwdShowPasswordCheckBoxToggled);
+ connect(ui->fastShowPasswordCheckBox, &QCheckBox::stateChanged, this, &Security802_1xTab::onFastShowPasswordCheckBoxToggled);
+ connect(ui->ttlsShowPasswordCheckBox, &QCheckBox::stateChanged, this, &Security802_1xTab::onTtlsShowPasswordCheckBoxToggled);
+ connect(ui->peapShowPasswordCheckBox, &QCheckBox::stateChanged, this, &Security802_1xTab::onPeapShowPasswordCheckBoxToggled);
}
Security802_1xTab::~Security802_1xTab()
@@ -402,3 +408,75 @@ void Security802_1xTab::onEnable802_1xCheckBoxToggled(int state)
break;
}
}
+
+void Security802_1xTab::onMd5ShowPasswordCheckBoxToggled(int state)
+{
+ switch (state) {
+ case Qt::Checked:
+ ui->md5PasswordLineEdit->setEchoMode(QLineEdit::Normal);
+ break;
+ case Qt::Unchecked:
+ ui->md5PasswordLineEdit->setEchoMode(QLineEdit::Password);
+ break;
+ }
+}
+
+void Security802_1xTab::onTlsShowPasswordCheckBoxToggled(int state)
+{
+ switch (state) {
+ case Qt::Checked:
+ ui->tlsUserKeyPasswordLineEdit->setEchoMode(QLineEdit::Normal);
+ break;
+ case Qt::Unchecked:
+ ui->tlsUserKeyPasswordLineEdit->setEchoMode(QLineEdit::Password);
+ break;
+ }
+}
+
+void Security802_1xTab::onPwdShowPasswordCheckBoxToggled(int state)
+{
+ switch (state) {
+ case Qt::Checked:
+ ui->pwdPasswordLineEdit->setEchoMode(QLineEdit::Normal);
+ break;
+ case Qt::Unchecked:
+ ui->pwdPasswordLineEdit->setEchoMode(QLineEdit::Password);
+ break;
+ }
+}
+
+void Security802_1xTab::onFastShowPasswordCheckBoxToggled(int state)
+{
+ switch (state) {
+ case Qt::Checked:
+ ui->fastPasswordLineEdit->setEchoMode(QLineEdit::Normal);
+ break;
+ case Qt::Unchecked:
+ ui->fastPasswordLineEdit->setEchoMode(QLineEdit::Password);
+ break;
+ }
+}
+
+void Security802_1xTab::onTtlsShowPasswordCheckBoxToggled(int state)
+{
+ switch (state) {
+ case Qt::Checked:
+ ui->ttlsPasswordLineEdit->setEchoMode(QLineEdit::Normal);
+ break;
+ case Qt::Unchecked:
+ ui->ttlsPasswordLineEdit->setEchoMode(QLineEdit::Password);
+ break;
+ }
+}
+
+void Security802_1xTab::onPeapShowPasswordCheckBoxToggled(int state)
+{
+ switch (state) {
+ case Qt::Checked:
+ ui->peapPasswordLineEdit->setEchoMode(QLineEdit::Normal);
+ break;
+ case Qt::Unchecked:
+ ui->peapPasswordLineEdit->setEchoMode(QLineEdit::Password);
+ break;
+ }
+}
diff --git a/security802_1xtab.h b/security802_1xtab.h
index d3a5c2d..3d46b0d 100644
--- a/security802_1xtab.h
+++ b/security802_1xtab.h
@@ -21,6 +21,12 @@ public:
private slots:
void onEnable802_1xCheckBoxToggled(int state);
+ void onMd5ShowPasswordCheckBoxToggled(int state);
+ void onTlsShowPasswordCheckBoxToggled(int state);
+ void onPwdShowPasswordCheckBoxToggled(int state);
+ void onFastShowPasswordCheckBoxToggled(int state);
+ void onTtlsShowPasswordCheckBoxToggled(int state);
+ void onPeapShowPasswordCheckBoxToggled(int state);
private:
Ui::Security802_1xTab *ui;
diff --git a/security802_1xtab.ui b/security802_1xtab.ui
index 8790518..471efd1 100644
--- a/security802_1xtab.ui
+++ b/security802_1xtab.ui
@@ -31,7 +31,7 @@
-
- 0
+ 1
@@ -39,7 +39,11 @@
-
-
+
+
+ QLineEdit::Password
+
+
-
@@ -170,9 +174,9 @@
-
-
+
- Show passwords
+ Show password
@@ -194,7 +198,11 @@
-
-
+
+
+ QLineEdit::Password
+
+
-
@@ -242,7 +250,11 @@
-
-
+
+
+ QLineEdit::Password
+
+
-
@@ -335,7 +347,11 @@
-
-
+
+
+ QLineEdit::Password
+
+
-
@@ -440,7 +456,11 @@
-
-
+
+
+ QLineEdit::Password
+
+
-
@@ -652,7 +672,11 @@
-
-
+
+
+ QLineEdit::Password
+
+
-