Help on some Plasma methods

Leonardo Giordani giordani.leonardo at gmail.com
Fri Jul 12 18:27:30 UTC 2013


Ah! You are prematurely kiiling my carreer as a C++ Plasma hacker =) =)
Thank you for the tips!


Leonardo Giordani
Author of The Digital Cat <http://lgiordani.github.com>
My profile on About.me <http://about.me/leonardo.giordani>


2013/7/12 Aaron J. Seigo <aseigo at kde.org>

> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20130712/fef4578d/attachment.html>


More information about the Plasma-devel mailing list