QML style guide
Marco Martin
notmart at gmail.com
Mon Oct 29 20:57:40 UTC 2012
On Monday 29 October 2012, Aaron J. Seigo wrote:
> hi..
>
> we have a style guide for our C++ code: the kdelibs style, which was mostly
> borrowed from Qt. unfortunately for us there was no QML guide we could
> similarly abscond with.
>
> and it shows.
>
> summary -> i've started putting together a QML style guide draft and would
> like your input and to bring it completion in a collaboration with all of
> you who are writing QML for Plasma. to that end, i've started a wiki page
> here:
>
> http://community.kde.org/Plasma/QMLStyle
>
> nothing is set in stone. let's make it great.
>
cool.
added a couple of things.
it seems quite sensible,
only thing i would put declared properties immediately after the id:
usually i tend to put onFooChanged immediately after the declaration of foo,
has advantages and disadvantages, but i guess is mostly gettig used to
--
Marco Martin
More information about the Plasma-devel
mailing list