mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-03-12 16:00:17 -04:00
fix Qt6 deprecation warnings
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user