<div dir="ltr">> <span style="color:rgb(0,0,0);font-size:12.8px">the bottom line is that you cannot rely on capitalization because of differences in the platforms, even if by using the "ini" file like we are doing now after Nathan's profile implementation will probably overcome this issue (reason: The Windows registry and </span><span style="color:rgb(0,0,0);font-size:12.8px">INI files use case-insensitive keys).</span><div><span style="color:rgb(0,0,0);font-size:12.8px"><br></span></div><div><span style="color:rgb(0,0,0);font-size:12.8px">All the platforms should now be case-</span><span style="color:rgb(0,0,0);font-size:12.8px">insensitive</span><span style="color:rgb(0,0,0);font-size:12.8px"> I suspect given we are using ini for everything.</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 30, 2017 at 11:57 PM, Alessandro Pasotti <span dir="ltr"><<a href="mailto:apasotti@gmail.com" target="_blank">apasotti@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Mon, Oct 30, 2017 at 2:15 PM, Borys Jurgiel <span dir="ltr"><<a href="mailto:lists@borysjurgiel.pl" target="_blank">lists@borysjurgiel.pl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">By the way, do we have a standard for the section naming? Now I don't mean the<br>
enumeration, just other top-level sections, like [PluginInstaller]. Should I<br>
drop the camel case?<br>
<br>
Sorry for such detailed question, sometimes I'm too pedantic ;)<br></blockquote><div><br></div></span><div>On the contrary: thank you for  raising this point!</div><div><br></div><div>This is what I suggest (but no strong opinions so feel free to suggest a better/alternative approach):</div><div><br></div><div>ideally the main Sections should be kept to minimum, that's why I added just a few of them, we can always create all the sub-sections we want instead of overcrowding the sections enum.</div><div><br></div><div>For anything related to application that is not purely Gui, I would just use the "App" section.<br></div><span class=""><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Regards,<br>
Borys<br>
<br>
Dnia poniedziałek, 30 października 2017 14:08:01 Borys Jurgiel pisze:<br>
<div class="m_2212603342860583103gmail-HOEnZb"><div class="m_2212603342860583103gmail-h5">> Hi,<br>
><br>
> I was updating and migrating plugin installer's settings when Alessandro<br>
> suggested to create a new QgsSettings::Section::Windows enum value for all<br>
> the window geometries, currently placed in the [Windows] section<br>
> (capitalized) [1]<br>
><br>
> There are over 100 keys there, are we going to migrate them all from Windows<br>
> to windows, like we did with Qgis -> qgis?<br></div></div></blockquote><div><br></div><div><br></div></span><div>Here, I would follow the Qt recommendations about naming of the setting: the bottom line is that you cannot rely on capitalization because of differences in the platforms, even if by using the "ini" file like we are doing now after Nathan's profile implementation will probably overcome this issue (reason: The Windows registry and INI files use case-insensitive keys).</div><div><br></div><div>So, I'd vote for sticking to an all-lowercase underscore-separated syntax but as I said there is not anymore a technical reason for doing so.<br></div><div></div><div><br></div><div>see: <a href="http://doc.qt.io/qt-5/qsettings.html#section-and-key-syntax" target="_blank">http://doc.qt.io/qt-5/<wbr>qsettings.html#section-and-<wbr>key-syntax</a></div><span class=""><div><br></div><div><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"><div class="m_2212603342860583103gmail-HOEnZb"><div class="m_2212603342860583103gmail-h5">
><br>
> If so, I'll create the new enum value and port a few keys there, but I don't<br>
> want to mess if other keys are going to stay in the capitalized [Windows].<br>
><br>
> Regards,<br>
> Borys<br>
><br>
> [1] <a href="https://github.com/qgis/QGIS/pull/5494#discussion_r147628437" rel="noreferrer" target="_blank">https://github.com/qgis/QGIS/p<wbr>ull/5494#discussion_r147628437</a><br>
</div></div><div class="m_2212603342860583103gmail-HOEnZb"><div class="m_2212603342860583103gmail-h5">> ______________________________<wbr>_________________<br>
> QGIS-Developer mailing list<br>
> <a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a><br>
<br>
______________________________<wbr>_________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a></div></div></blockquote></span></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div class="m_2212603342860583103gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</font></span></div></div>
<br>______________________________<wbr>_________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br></blockquote></div><br></div>