mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-10-10 08:03:04 -04:00
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:
parent
511d4dd90b
commit
00bf7f97ba
1 changed files with 8 additions and 0 deletions
|
|
@ -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]() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue