<div dir="ltr"><div><div>>>> We could also start with turning that into <span class="">quint64</span>, to already double the number of possible settings, right? Easy short term fix.<br><br></div>Am I correct that with quint64 we will gain just 32 more additional unique signal bit masks? The problem is that my config file has more than 300.<br><br></div>I managed to make mSettingsChanged QHash<int,bool>. This way we hold there only non-modify signals. However, I encountered some other problems:<br><ol><li>Sometimes read function in Q_PROPERTY declaration starts with capital letter while the read function itself starts with the lowercase one. Almost the same thing happens with signal names. At each call to changeSignalName() and name() I make the first letter capital, is it OK?</li><li>Some of the properties in my .kcfg file have min and max values but KConfigCompilerSignallingItem doesn't support them. Should I just copy all the stuff from ItemInt or is it better to make it a subclass of ItemInt?<span style="background-color:rgb(255,255,255)"><span style=""></span></span></li></ol><p>Thank you for your help. After getting an answer to these questions I'm going to file a review request for my patch.</p><p>Regards, Artem<br></p></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-23 9:09 GMT+02:00 David Faure <span dir="ltr"><<a href="mailto:faure@kde.org" target="_blank">faure@kde.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On mardi 10 mai 2016 16:49:57 CEST Aleix Pol wrote:<br>
> On Mon, May 9, 2016 at 8:02 PM, Artem Fedoskin <<a href="mailto:afedoskin3@gmail.com">afedoskin3@gmail.com</a>> wrote:<br>
> > Dear KDE developers,<br>
> ><br>
> > For my GSoC 2016 project at KDE (Lite version of KStars for mobile<br>
> > devices)<br>
> > I need to access C++ class generated from XML configure file with KConfig<br>
> > compiler from QML. I found in this patch<br>
> > <a href="https://git.reviewboard.kde.org/r/123367/" rel="noreferrer" target="_blank">https://git.reviewboard.kde.org/r/123367/</a> and in the source code of<br>
> > KConfig<br>
> > compiler that I should set GenerateProperties=true in my .kcfgc file to<br>
> > create option properties as Q_PROPERTY. However, I got following error<br>
> > "Too<br>
> > many signals to create unique bit masks". There is some conflict between<br>
> > Mutators and GenerateProperties options that causes this error in my XML<br>
> > configure file but I can't figure out what I should change to have setters<br>
> > in Q_PROPERTY.<br>
> ><br>
> > Would be grateful if someone could help me with this issue.<br>
> ><br>
> > Options.kcfgc - <a href="https://paste.kde.org/pm1klcbls" rel="noreferrer" target="_blank">https://paste.kde.org/pm1klcbls</a><br>
> ><br>
> > kstars.kcfg - <a href="https://paste.kde.org/phit6qibo" rel="noreferrer" target="_blank">https://paste.kde.org/phit6qibo</a><br>
><br>
> Hi Artem,<br>
> KConfigCompiler is limited in this regard by an implementation detail.<br>
> See "uint mSettingsChanged;".<br>
><br>
> To solve it, I would patch kconfig_compiler and turn it into an<br>
> std::vector<bool> or patch kstars.kcfg to use separate config files<br>
> rather than a huge one.<br>
<br>
</div></div>We could also start with turning that into quint64, to already double the<br>
number of possible settings, right? Easy short term fix.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
David Faure, <a href="mailto:faure@kde.org">faure@kde.org</a>, <a href="http://www.davidfaure.fr" rel="noreferrer" target="_blank">http://www.davidfaure.fr</a><br>
Working on KDE Frameworks 5<br>
<br>
</font></span></blockquote></div><br></div>