https://bugs.kde.org/show_bug.cgi?id=443730
Bug ID: 443730 Summary: Generation of incorrect code for GenerateProperties=TRUE with Enums. Product: frameworks-kconfig Version: 5.87.0 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: matt...@mjdsystems.ca Reporter: tcanabr...@kde.org CC: kdelibs-b...@kde.org Target Milestone: --- SUMMARY KConfigXT produces incorrect code when there's an enum choice and GenerateProperties=TRUE STEPS TO REPRODUCE Compile this excerpt: <group name="WirelessPowerSaving"> <entry name="WifiPowerSaving" type="Enum"> <choices> <choice name="NoAction" value="No Action"/> <choice name="TurnOff" value="Turn Off"/> <choice name="TurnOn" value="Turn On"/> </choices> <default>EnumWifiPowerSaving::NoAction</default> </entry> </group> With a kcfgc that has GenerateProperties=TRUE OBSERVED RESULT /data/build/gcc-arch/powerdevil/PowerDevilProfileSettings.cpp:360:24: error: 'class KConfigCompilerSignallingItem' has no member named 'setValueForChoice' 360 | itemWifiPowerSaving->setValueForChoice(QStringLiteral( "TurnOn" ), QStringLiteral( "Turn On" )); EXPECTED RESULT Generated code should compile. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.