mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-18 17:34:52 +00:00
fix deprecation (#2406)
This commit is contained in:
parent
7624e9482c
commit
50b27bebd8
1 changed files with 8 additions and 2 deletions
|
@ -184,8 +184,14 @@ SettingsDialog::SettingsDialog(std::span<const QString> physical_devices,
|
||||||
connect(ui->chooseHomeTabComboBox, &QComboBox::currentTextChanged, this,
|
connect(ui->chooseHomeTabComboBox, &QComboBox::currentTextChanged, this,
|
||||||
[](const QString& hometab) { Config::setChooseHomeTab(hometab.toStdString()); });
|
[](const QString& hometab) { Config::setChooseHomeTab(hometab.toStdString()); });
|
||||||
|
|
||||||
connect(ui->showBackgroundImageCheckBox, &QCheckBox::stateChanged, this,
|
#if (QT_VERSION < QT_VERSION_CHECK(6, 7, 0))
|
||||||
[](int state) { Config::setShowBackgroundImage(state == Qt::Checked); });
|
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
|
// Input TAB
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue