https://bugs.kde.org/show_bug.cgi?id=393875
Bug ID: 393875
Summary: ItemAccessors doesn't work with signals
Product: frameworks-kconfig
Version: 5.45.0
Platform: Archlinux Packages
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Overview:
If we specify ItemAccessors=true in kcfgc and use both signals it produces
compilation errors during "make" phase.
By "use signals" I mean adding emit tag to entry or using
GenerateProperties=true option in kcfgc.
Minimal Working Example:
https://gist.github.com/MrQubo/ea4acf1aa7ff794f3d42f4e5b5c84368
The exact errors message for this MWE is https://paste.kde.org/pemq0mt6d.
Additional informations:
We have to add Mutators, because without that signals won't be generated.
The error occures because ItemAccessors generates fields of types ItemBool,
ItemString etc while in .cpp file it tries to assign variable of type
KConfigCompilerSignallingItem to those fields.
Possible solution:
I'll refer to MWE as an example.
The type of mExampleItem should be changed to KConfigSkeletonItem.
Function exampleItem() should return the mItem property from
KConfigCompilerSignallingItem or the mExampleItem itself casted to correct type
(depending on the actual underlying type of mExampleItem).
Build Date & Platform:
Linux 4.16.5-1-ARCH Thu Apr 26 16:53:40 UTC 2018 x86_64 GNU/Linux
--
You are receiving this mail because:
You are watching all bug changes.