Changeset View
Changeset View
Standalone View
Standalone View
libs/editor/settings/wifisecurity.cpp
Show All 38 Lines | 33 | { | |||
---|---|---|---|---|---|
39 | m_ui->psk->setPasswordOptionsEnabled(true); | 39 | m_ui->psk->setPasswordOptionsEnabled(true); | ||
40 | m_ui->wepKey->setPasswordOptionsEnabled(true); | 40 | m_ui->wepKey->setPasswordOptionsEnabled(true); | ||
41 | 41 | | |||
42 | m_8021xWidget = new Security8021x(setting8021x, true, this); // Dynamic WEP | 42 | m_8021xWidget = new Security8021x(setting8021x, true, this); // Dynamic WEP | ||
43 | m_WPA2Widget = new Security8021x(setting8021x, true, this); // WPA(2) Enterprise | 43 | m_WPA2Widget = new Security8021x(setting8021x, true, this); // WPA(2) Enterprise | ||
44 | m_ui->stackedWidget->insertWidget(3, m_8021xWidget); | 44 | m_ui->stackedWidget->insertWidget(3, m_8021xWidget); | ||
45 | m_ui->stackedWidget->insertWidget(5, m_WPA2Widget); | 45 | m_ui->stackedWidget->insertWidget(5, m_WPA2Widget); | ||
46 | 46 | | |||
47 | connect(m_ui->securityCombo, static_cast<void (KComboBox::*)(int)>(&KComboBox::currentIndexChanged), this, &WifiSecurity::securityChanged); | 47 | connect(m_ui->securityCombo, QOverload<int>::of(&KComboBox::currentIndexChanged), this, &WifiSecurity::securityChanged); | ||
48 | connect(m_ui->wepIndex, static_cast<void (KComboBox::*)(int)>(&KComboBox::currentIndexChanged), this, &WifiSecurity::setWepKey); | 48 | connect(m_ui->wepIndex, QOverload<int>::of(&KComboBox::currentIndexChanged), this, &WifiSecurity::setWepKey); | ||
49 | 49 | | |||
50 | // Connect for setting check | 50 | // Connect for setting check | ||
51 | watchChangedSetting(); | 51 | watchChangedSetting(); | ||
52 | 52 | | |||
53 | // Connect for validity check | 53 | // Connect for validity check | ||
54 | connect(m_ui->wepKey, &PasswordField::textChanged, this, &WifiSecurity::slotWidgetChanged); | 54 | connect(m_ui->wepKey, &PasswordField::textChanged, this, &WifiSecurity::slotWidgetChanged); | ||
55 | connect(m_ui->wepKey, &PasswordField::passwordOptionChanged, this, &WifiSecurity::slotWidgetChanged); | 55 | connect(m_ui->wepKey, &PasswordField::passwordOptionChanged, this, &WifiSecurity::slotWidgetChanged); | ||
56 | connect(m_ui->leapUsername, &KLineEdit::textChanged, this, &WifiSecurity::slotWidgetChanged); | 56 | connect(m_ui->leapUsername, &KLineEdit::textChanged, this, &WifiSecurity::slotWidgetChanged); | ||
57 | connect(m_ui->leapPassword, &PasswordField::textChanged, this, &WifiSecurity::slotWidgetChanged); | 57 | connect(m_ui->leapPassword, &PasswordField::textChanged, this, &WifiSecurity::slotWidgetChanged); | ||
58 | connect(m_ui->leapPassword, &PasswordField::passwordOptionChanged, this, &WifiSecurity::slotWidgetChanged); | 58 | connect(m_ui->leapPassword, &PasswordField::passwordOptionChanged, this, &WifiSecurity::slotWidgetChanged); | ||
59 | connect(m_ui->psk, &PasswordField::textChanged, this, &WifiSecurity::slotWidgetChanged); | 59 | connect(m_ui->psk, &PasswordField::textChanged, this, &WifiSecurity::slotWidgetChanged); | ||
60 | connect(m_ui->psk, &PasswordField::passwordOptionChanged, this, &WifiSecurity::slotWidgetChanged); | 60 | connect(m_ui->psk, &PasswordField::passwordOptionChanged, this, &WifiSecurity::slotWidgetChanged); | ||
61 | connect(m_ui->wepIndex, static_cast<void (KComboBox::*)(int)>(&KComboBox::currentIndexChanged), this, &WifiSecurity::slotWidgetChanged); | 61 | connect(m_ui->wepIndex, QOverload<int>::of(&KComboBox::currentIndexChanged), this, &WifiSecurity::slotWidgetChanged); | ||
62 | connect(m_ui->securityCombo, static_cast<void (KComboBox::*)(int)>(&KComboBox::currentIndexChanged), this, &WifiSecurity::slotWidgetChanged); | 62 | connect(m_ui->securityCombo, QOverload<int>::of(&KComboBox::currentIndexChanged), this, &WifiSecurity::slotWidgetChanged); | ||
63 | connect(m_8021xWidget, &Security8021x::validChanged, this, &WifiSecurity::slotWidgetChanged); | 63 | connect(m_8021xWidget, &Security8021x::validChanged, this, &WifiSecurity::slotWidgetChanged); | ||
64 | connect(m_WPA2Widget, &Security8021x::validChanged, this, &WifiSecurity::slotWidgetChanged); | 64 | connect(m_WPA2Widget, &Security8021x::validChanged, this, &WifiSecurity::slotWidgetChanged); | ||
65 | 65 | | |||
66 | KAcceleratorManager::manage(this); | 66 | KAcceleratorManager::manage(this); | ||
67 | 67 | | |||
68 | if (setting && !setting->isNull()) { | 68 | if (setting && !setting->isNull()) { | ||
69 | loadConfig(setting); | 69 | loadConfig(setting); | ||
70 | } | 70 | } | ||
▲ Show 20 Lines • Show All 311 Lines • Show Last 20 Lines |