QML code style

Marco Martin notmart at gmail.com
Thu Jan 20 21:16:19 CET 2011


On Thursday 20 January 2011, Ivan Čukić wrote:
> > qt has a (quite scarce) conventions document
> 
> Yes, it covers a bit specific stuff where the more important things
> are not present.
> 
> The thing currently on my mind is the following - if the Qt examples
> and the mentioned page are to be followed - we'd end up with something
> like this:
> 
>     property string title
> 
>     Text {
>         id: title
>     }
> 
> Which sucks :)

agree

> (for the time being, I started naming things like I used to name
> widgets in normal UIs - id:textTitle - for Text type, imageIcon for
> Image type etc.)

I always do the opposite, like iconImage and titleText, otherwise remembers me 
too much of the hungarian form that i never liked (just gut feeling)  ;)

Cheers,
Marco Martin


More information about the Plasma-devel mailing list