<html><head><style type="text/css">body, p, li { font-family: NokiaPureTextLight; }</style></head><body><div id="fenix-user-content">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">'protected' ? ;-)</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">I mean when a 'derived' component creted, altering/extending original vehaviour, they canbe used.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">But just guessing...</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Zoltán</p></div><br><div id="fenix-reply-header"><p>christopher.lamb@thurweb.ch írta ekkor: 2013.11.24. 10:26<br></p></div><div id="fenix-quoted-body"><div>
Andrey<br>
<br>
</div>
<div>
I beg to differ.<br>
<br>
</div>
<div>
You can hack in any language, just as you can apply clean coding <br>
conventions. QML is no different here, it is just a little less <br>
rigorous in enforcing some conventions.<br>
<br>
</div>
<div>
Just like any code, QML code will need maintaining, updating etc, so I <br>
prefer to clean code and follow the conventions where they make sense.<br>
<br>
</div>
<div>
<a href="http://harmattan-dev.nokia.com/docs/library/html/qt4/qml-coding-conventions.html">http://harmattan-dev.nokia.com/docs/library/html/qt4/qml-coding-conventions.html</a> clearly states that double underscore are private, not for external <br>
use.<br>
<br>
</div>
<div>
So it's hands off double underscores, but this raises the moot point: <br>
what about single underscores like _contentColumn? By a strict reading <br>
of the conventions they are not private, so what does a single <br>
underscore imply?<br>
<br>
</div>
<div>
Chris<br>
<br>
</div>
<div>
Zitat von "Andrey Kozhevnikov" <<a href="mailto:coderusinbox@gmail.com">coderusinbox@gmail.com</a>>:<br>
<br>
</div>
<div>
> Please check ContextMenu and ComboBox code.<br>
> _contentColumn property used in a proper way.<br>
><br>
> QML is not C++ where you not allowed to reimplement headers to use <br>
> private and protected functions outside. QML is hack-for-fun.<br>
><br>
> On 24.11.2013 00:03, <a href="mailto:coderusinbox@gmail.com">coderusinbox@gmail.com</a> wrote:<br>
>> We should not have to make that choice.<br>
>><br>
>> using an underscore property is the pragmatic solution, but I would <br>
>> be interested to hear what the Jolla developers have to say on this <br>
>> issue.<br>
>><br>
>> Zitat von "Andrey Kozhevnikov" <<a href="mailto:coderusinbox@gmail.com">coderusinbox@gmail.com</a>>:<br>
>><br>
>>> You should use it if you want "real" dynamically created components.<br>
>>> Or reimplement ContextMenu item.<br>
>>><br>
>>> What would you prefer?<br>
>><br>
>><br>
>><br>
><br>
><br>
<br>
<br>
_______________________________________________<br>
</div>
<div>
SailfishOS.org Devel mailing list<br>
<br>
</div>
</div><br></body></html>