Change QCheckBox::stateChanged -> QCheckBox::checkStateChanged to fix a deprecation error

This commit is contained in:
Simon Quigley 2025-02-11 20:54:56 -06:00
parent 279b981d0d
commit ae5a4cd5e0

View File

@ -10,7 +10,7 @@ Security802_1xTab::Security802_1xTab(QWidget *parent) :
ui(new Ui::Security802_1xTab)
{
ui->setupUi(this);
connect(ui->enable802_1xCheckBox, &QCheckBox::stateChanged, this, &Security802_1xTab::onEnable802_1xCheckBoxToggled);
connect(ui->enable802_1xCheckBox, &QCheckBox::checkStateChanged, this, &Security802_1xTab::onEnable802_1xCheckBoxToggled);
onEnable802_1xCheckBoxToggled(Qt::Unchecked);
onFastAutoPacProvisionCheckBoxToggled(Qt::Unchecked);
QStringList passwordStoreItems;
@ -28,13 +28,13 @@ 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);
connect(ui->fastAutoPacProvisionCheckBox, &QCheckBox::stateChanged, this, &Security802_1xTab::onFastAutoPacProvisionCheckBoxToggled);
connect(ui->md5ShowPasswordCheckBox, &QCheckBox::checkStateChanged, this, &Security802_1xTab::onMd5ShowPasswordCheckBoxToggled);
connect(ui->tlsShowPasswordCheckBox, &QCheckBox::checkStateChanged, this, &Security802_1xTab::onTlsShowPasswordCheckBoxToggled);
connect(ui->pwdShowPasswordCheckBox, &QCheckBox::checkStateChanged, this, &Security802_1xTab::onPwdShowPasswordCheckBoxToggled);
connect(ui->fastShowPasswordCheckBox, &QCheckBox::checkStateChanged, this, &Security802_1xTab::onFastShowPasswordCheckBoxToggled);
connect(ui->ttlsShowPasswordCheckBox, &QCheckBox::checkStateChanged, this, &Security802_1xTab::onTtlsShowPasswordCheckBoxToggled);
connect(ui->peapShowPasswordCheckBox, &QCheckBox::checkStateChanged, this, &Security802_1xTab::onPeapShowPasswordCheckBoxToggled);
connect(ui->fastAutoPacProvisionCheckBox, &QCheckBox::checkStateChanged, this, &Security802_1xTab::onFastAutoPacProvisionCheckBoxToggled);
connect(ui->tlsCaCertificateOpenFileButton, &QPushButton::clicked, this, &Security802_1xTab::onTlsCaCertificateOpenFileButtonClicked);
connect(ui->tlsUserCertificateOpenFileButton, &QPushButton::clicked, this, &Security802_1xTab::onTlsUserCertificateOpenFileButtonClicked);
connect(ui->tlsUserPrivateKeyOpenFileButton, &QPushButton::clicked, this, &Security802_1xTab::onTlsUserPrivateKeyOpenFileButtonClicked);