rbutil: Support building with QT 6.6

Without this we'd need 6.7 or newer, which isn't that big of a deal except
we want to support producing RHEL9-based AppImages.

Change-Id: I931be94400d0d19af7fba498f46f174f51a4cd8b
This commit is contained in:
Solomon Peachy 2026-08-01 13:07:44 -04:00
parent 511d4dd90b
commit 00bf7f97ba

View file

@ -219,10 +219,18 @@ QWidget* EncTtsCfgGui::createWidgets(EncTtsSetting* setting)
checkbox->setAccessibleName(setting->name());
checkbox->setCheckState(setting->current().toBool() == true
? Qt::Checked : Qt::Unchecked);
#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
connect(checkbox, &QCheckBox::checkStateChanged,
this, [=, this](int value) {
this->m_settingsWidgetsMap.key(checkbox)->setCurrent(value, false);
});
#else
connect(checkbox, &QCheckBox::stateChanged,
this, [=, this](int value) {
this->m_settingsWidgetsMap.key(checkbox)->setCurrent(value, false);
});
#endif
value = checkbox;
connect(setting, &EncTtsSetting::updateGui, this,
[checkbox, setting]() {