Qt: Fix 6.7 deprecation warnings

This commit is contained in:
Stenzek
2024-04-11 21:48:59 +10:00
parent efcfcd8e11
commit 3e9ac99d54
12 changed files with 24 additions and 27 deletions

View File

@ -348,7 +348,7 @@ void PostProcessingShaderConfigWidget::createUi()
QCheckBox* checkbox = new QCheckBox(QString::fromStdString(option.ui_name), this);
checkbox->setToolTip(tooltip);
checkbox->setChecked(option.value[0].int_value != 0);
connect(checkbox, &QCheckBox::stateChanged, [this, &option](int state) {
connect(checkbox, &QCheckBox::checkStateChanged, [this, &option](Qt::CheckState state) {
option.value[0].int_value = (state == Qt::Checked) ? 1 : 0;
updateConfigForOption(option);
});