rbutil: Support building with QT 6.6

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Sat, 1 Aug 2026 13:10:08 -0400
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit 00bf7f97ba0ecc5b55c2b8fda932ad9e5a58e422
Author: Solomon Peachy <[email protected]>
Date:   Sat Aug 1 13:07:44 2026 -0400

    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

diff --git a/utils/rbutilqt/encttscfggui.cpp b/utils/rbutilqt/encttscfggui.cpp
index 35e73ae907..f17021ebd1 100644
--- a/utils/rbutilqt/encttscfggui.cpp
+++ b/utils/rbutilqt/encttscfggui.cpp
@@ -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]() {
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs