Skip to content

Commit

Permalink
SettingsDialog: Fix Qt 6.7 checkbox signal deprecations
Browse files Browse the repository at this point in the history
qt/qtbase@3512fb1 deprecated the
stateChanged signal of QCheckBoxes in favor of a new checkStateChanged
signal. The signals are the same, except that now the enum type is
passed explicitly (before the enum was passed as an argument but defined
as an int).
  • Loading branch information
RytoEX committed Sep 3, 2024
1 parent e72e80e commit d9befb9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/forms/SettingsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,13 @@ SettingsDialog::SettingsDialog(QWidget *parent)

connect(sessionTableTimer, &QTimer::timeout, this, &SettingsDialog::FillSessionTable);
connect(ui->buttonBox, &QDialogButtonBox::clicked, this, &SettingsDialog::DialogButtonClicked);
#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
connect(ui->enableAuthenticationCheckBox, &QCheckBox::checkStateChanged, this,
&SettingsDialog::EnableAuthenticationCheckBoxChanged);
#else
connect(ui->enableAuthenticationCheckBox, &QCheckBox::stateChanged, this,
&SettingsDialog::EnableAuthenticationCheckBoxChanged);
#endif
connect(ui->generatePasswordButton, &QPushButton::clicked, this, &SettingsDialog::GeneratePasswordButtonClicked);
connect(ui->showConnectInfoButton, &QPushButton::clicked, this, &SettingsDialog::ShowConnectInfoButtonClicked);
connect(ui->serverPasswordLineEdit, &QLineEdit::textEdited, this, &SettingsDialog::PasswordEdited);
Expand Down

0 comments on commit d9befb9

Please sign in to comment.