Help on some Plasma methods
Kai Uwe Broulik
kde at privat.broulik.de
Fri Jul 12 17:35:46 UTC 2013
Talking about the Digital Clock, I'm curious how that gradient text will work like with QML - or can we simply apply a gradient to Text in Qml2? If so that would make that super easy compared to the way it's currently done.
"Aaron J. Seigo" <aseigo at kde.org> schrieb:
>On Friday, July 12, 2013 19:03:54 Leonardo Giordani wrote:
>> Hi all,
>>
>> I'm a little puzzled by the following methods I see implemented in
>> digital-clock:
>>
>> * paintInterface()
>> * constraintsEvent()
>
>You do not want to use either of these things. You should be using QML for new
>development.
>
>In any case .. here’s the answers:
>
>paintInterface is the method in which the plasmoid gets the chance to paint
>directly to the canvas. in qml this just doesn’t ever happen.
>
>constraintsEvent: this is called when the form factor, screen location,
>immutability, etc changes
>
>again, in QML you don’t need to deal with this as they are properties you can
>bind to from the global plasmoid object
>
>so short story: use qml. :)
>
>--
>Aaron J. Seigo
>_______________________________________________
>Plasma-devel mailing list
>Plasma-devel at kde.org
>https://mail.kde.org/mailman/listinfo/plasma-devel
More information about the Plasma-devel
mailing list