Declarative appletscript: last touches

Marco Martin notmart at gmail.com
Thu Dec 9 00:32:44 CET 2010


On Thursday 09 December 2010, Aaron J. Seigo wrote:
> On Wednesday, December 8, 2010, Marco Martin wrote:
> > import "../../generic/ui/"
> 
> i take it that "../../generic/ui/" has to be a string literal in the QML
> file? and that it doesn't accept URLs (thereby going through the network
> access implementation)? if so, that would seem to be a major flaw in QML
> as it currently stands.

it is possible, however only for full folders.
now i'm using a way i didn't tought before:

import "plasmapackage:/ui/MeegoComponents"

in generic/ui there will be a MeegoComponents subfolder (in this case a 
qmldirs file listing everything is needed) that folder will have a fallback.
it's better than nothing but still not overly pretty.

Cheers, 
Marco Martin


More information about the Plasma-devel mailing list