<div dir="ltr">On Thu, May 18, 2017 at 1:27 PM, Richard Duivenvoorde <span dir="ltr"><<a href="mailto:rdmailings@duif.net" target="_blank">rdmailings@duif.net</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On 18-05-17 12:11, Alessandro Pasotti wrote:<br>
> Hi Richard,<br>
><br>
> Cleaning is always very welcome!<br>
><br>
> I think that to bring some more order to the root level settings, we<br>
> should eventually make more use of the optional section argument:<br>
><br>
> <a href="https://qgis.org/api/classQgsSettings.html#aba2f174ee000905cac8aff26665ed7c7" rel="noreferrer" target="_blank">https://qgis.org/api/<wbr>classQgsSettings.html#<wbr>aba2f174ee000905cac8aff26665ed<wbr>7c7</a><br>
><br>
> This is not implemented for groups though, but if you feel it could be<br>
> helpful I can add it.<br>
<br>
</span>Hi Alessandro,<br>
<br>
I do not understand: "This is not implemented for groups though..."<br>
Isn't a section the same concept as a group?<br>
Where is this 'section' element to be used?<br>
Or is the idea to use it in a (free chosen) group?<br></blockquote><div><br></div><div>I mean that the optional section argument is not available for beginGroup <a href="https://qgis.org/api/classQgsSettings.html#ae0ffd9ce99f3fa8a712befb9be99412b">https://qgis.org/api/classQgsSettings.html#ae0ffd9ce99f3fa8a712befb9be99412b</a><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
I already have > 40 groups/sections(?) (as counted in the 'Advanced<br>
Settings Editor').<br>
I do not think it is possible to bring that back to the 8 you propose,<br>
do you?<br></blockquote><div><br></div><div>I don't know, maybe you can move some of them under one of the available sections. The idea of the sections is to reduce (to 8, but can be expanded if needed) the root level elements, of course you are not forced to do that but I think that grouping GUI settings under the "gui" section, application settings under the "app" section, plugins settings under "plugins" etc. etc. is the first step towards a more logical tree classification.<br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Looking into the 'Advanced Settings Editor' I also have double values in<br>
the following 'groups'?<br>
PythonPlugins<br>
and<br>
pythonplugins<br>
but this could be due to recent changes. Ik will remove my config<br>
<br></blockquote><div><br></div><div>This is bad design: see rule n. 1 in <a href="http://doc.qt.io/qt-5/qsettings.html#section-and-key-syntax">http://doc.qt.io/qt-5/qsettings.html#section-and-key-syntax</a><br><br><br></div></div>-- <br><div class="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</div></div>