Notes from "Async and representation"

Marco Martin notmart at gmail.com
Fri Jan 17 20:25:54 UTC 2014


On Friday 17 January 2014, Marco Martin wrote:
> Applet {
> 
>     compactRepresentation: Component {
>         PlasmaComponents.Button {
>             text: i18n("Click me")
>             onClicked: plasmoid.expanded = !plasmoid.expanded
>         }
>     }
> 
>     fullRepresentation: Component {
>         PlasmaComponents.Label {
>             SizeHint.minimumHeight: 300
>             SizeHint.minimumWidth: 200
>             //PlasmaCore.SizeHint.minimumHeight: 300
>             text: i18n("Hello world")
>         }
>     }
> }
> 

so, to recap, this is implemented-ish in the branch mart/AppletComponent
and the applet compactrepresentation in examples/ uses it.

to everybody, please take a look at the code, and play with it.
i need ideas on how to do it, to see if is clunky to use, if covers needed use 
cases etc.

Cheers,
Marco Martin


More information about the Plasma-devel mailing list