On Wednesday 08 October 2008 19:06:38 Marco Martin wrote:
> On Wednesday 08 October 2008, Toussis Manolis wrote:
> > it's an applet that gets painted every 10 o more seconds.
> > So I think setOpacity isn't so expensive. (and ofcourse much easier)
> > Any problem with that? (I mean the refresh is very sparse)
>
> problem is that the applet won't get repainted only when it asks explicitly
> but also when is dragged, overlapped with another, handle appearing and
> similar events.
Didn't thought of that, thanks for the tip. :-)


> if the part you want composed really won't change in a 10 seconds time you
> can paint with the method you want a pixmap, caching it and then in
> paintinterface just paint the pixmap if has data still valid
>
> Cheers,
> Marco Martin

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to