RFC: plasma2 and configuration

Marco Martin notmart at gmail.com
Wed Feb 27 12:22:42 UTC 2013


On Wednesday 27 February 2013, Aaron J. Seigo wrote:
> > 
> > 
> > it still looks a bit clunky, and perhaps a bit error prone as well, but
> > something more refined can come from that...
> 
> definitely on the right track, imho ... and perhaps by creating a small set
> of components it can become more succinct and reliable like:
> 
> import org.kde.plasma.configuration as PlasmaConfiguration
> 
> PlasmaConfiguration.ModuleModel {
>      modules: [
>           PlasmaConfiguration.Page {
>               name: i18n("General")
>               icon: "plasma"
>               component: MyComponentInAnotherFile
>           },
> 	  ....
>      ]
> }
.
the really, really simplest declaration could be:

ListModel {
    ListElement {
        title: i18n("blah")
        icon: "foo"
        source: "foo.qml"
    }
    ListElement {
        title: i18n("stuff")
        icon: "bar"
        source: "bar.qml"
    }
}

the component could just be there by filename but i think wouldn't be a 
serious issue (makes easier to formfactorize, actually)

the actually serious problem is that here scripts aren't supported on the 
right hand, so title: i18n("stuff") won't work :/

-- 
Marco Martin


More information about the Plasma-devel mailing list