From ae5a4cd5e029b15916e7bc93d4408dd02a007576 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Tue, 11 Feb 2025 20:54:56 -0600 Subject: [PATCH] Change QCheckBox::stateChanged -> QCheckBox::checkStateChanged to fix a deprecation error --- security802_1xtab.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/security802_1xtab.cpp b/security802_1xtab.cpp index 93ad792..37be736 100644 --- a/security802_1xtab.cpp +++ b/security802_1xtab.cpp @@ -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);