fix deprecation (#2406)

This commit is contained in:
kalaposfos13 2025-02-12 18:05:14 +01:00 committed by GitHub
parent 7624e9482c
commit 50b27bebd8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -184,8 +184,14 @@ SettingsDialog::SettingsDialog(std::span<const QString> physical_devices,
connect(ui->chooseHomeTabComboBox, &QComboBox::currentTextChanged, this,
[](const QString& hometab) { Config::setChooseHomeTab(hometab.toStdString()); });
connect(ui->showBackgroundImageCheckBox, &QCheckBox::stateChanged, this,
[](int state) { Config::setShowBackgroundImage(state == Qt::Checked); });
#if (QT_VERSION < QT_VERSION_CHECK(6, 7, 0))
connect(ui->showBackgroundImageCheckBox, &QCheckBox::stateChanged, this, [](int state) {
#else
connect(ui->showBackgroundImageCheckBox, &QCheckBox::checkStateChanged, this,
[](Qt::CheckState state) {
#endif
Config::setShowBackgroundImage(state == Qt::Checked);
});
}
// Input TAB
{