[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: QML code style
From:       Marco Martin <notmart () gmail ! com>
Date:       2011-01-20 20:16:19
Message-ID: 201101202116.19605.notmart () gmail ! com
[Download RAW message or body]

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
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic