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

List:       kde-panel-devel
Subject:    Re: QML style guide
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2012-11-07 9:45:31
Message-ID: 1497457.q0O3fLbuVc () freedom
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Wednesday, November 7, 2012 11:26:10 Dmitry A. Ashkadov wrote:
> Hello, Aaron!
> 
> 1. If usage of item consist of only one property that is set, then may it be
> placed on one line?
> 
> Example:
> 
> ScriptAction { script: targetItem.smooth = false }
> 
> PlasmaCore.SvgItem {
> ... // blablabla
> svg: PlasmaCore.Svg { imagePath: "path" }
> ... // blablabla
> }

yes, i think this makes sense; it's already fairly common and keeps simple QML 
looking tidy.

> 2. Maybe is it better to fix the aliases like PlasmaCore, PlasmaExtras,
> PlasmaComponents ... for a consistency?

agreed; i'll put a section in Best Practices for these

thanks :)

-- 
Aaron J. Seigo
["signature.asc" (application/pgp-signature)]

_______________________________________________
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