KConfig compiler. GenerateProperties and Mutable.

David Faure faure at kde.org
Mon May 23 07:09:59 UTC 2016


On mardi 10 mai 2016 16:49:57 CEST Aleix Pol wrote:
> On Mon, May 9, 2016 at 8:02 PM, Artem Fedoskin <afedoskin3 at gmail.com> wrote:
> > Dear KDE developers,
> > 
> > For my GSoC 2016 project at KDE (Lite version of KStars for mobile
> > devices)
> > I need to access C++ class generated from XML configure file with KConfig
> > compiler from QML. I found in this patch
> > https://git.reviewboard.kde.org/r/123367/ and in the source code of
> > KConfig
> > compiler that I should set GenerateProperties=true in my .kcfgc file to
> > create option properties as Q_PROPERTY. However, I got following error
> > "Too
> > many signals to create unique bit masks". There is some conflict between
> > Mutators and GenerateProperties options that causes this error in my XML
> > configure file but I can't figure out what I should change to have setters
> > in Q_PROPERTY.
> > 
> > Would be grateful if someone could help me with this issue.
> > 
> > Options.kcfgc - https://paste.kde.org/pm1klcbls
> > 
> > kstars.kcfg - https://paste.kde.org/phit6qibo
> 
> Hi Artem,
> KConfigCompiler is limited in this regard by an implementation detail.
> See "uint mSettingsChanged;".
> 
> To solve it, I would patch kconfig_compiler and turn it into an
> std::vector<bool> or patch kstars.kcfg to use separate config files
> rather than a huge one.

We could also start with turning that into quint64, to already double the 
number of possible settings, right? Easy short term fix.

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5



More information about the Kde-frameworks-devel mailing list