fix Qt6 deprecation warnings

This commit is contained in:
oltolm
2024-11-01 13:05:14 +01:00
parent b25e293cc8
commit 49c72efcd3
12 changed files with 94 additions and 0 deletions

View File

@@ -76,7 +76,11 @@ MappingBool::MappingBool(MappingWidget* parent, ControllerEmu::NumericSetting<bo
if (const auto ui_description = m_setting.GetUIDescription())
setToolTip(tr(ui_description));
#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
connect(this, &QCheckBox::checkStateChanged, this, [this, parent](Qt::CheckState value) {
#else
connect(this, &QCheckBox::stateChanged, this, [this, parent](int value) {
#endif
m_setting.SetValue(value != 0);
ConfigChanged();
parent->SaveSettings();