signal clicked()

Aaron J. Seigo aseigo at kde.org
Mon Jan 19 18:04:56 CET 2009


On Monday 19 January 2009, David Baron wrote:
> I notice that some applets/icons will change there color/birghtness a bit
> on hover. The device-monitor applet does this as do any shortcuts or
> folders I placed on the panel. How do I do this?

it's part of Plasma::IconWidget. 

you can also do it yourself for custom items by reacting on hover events and 
starting an animation that uses one of the KPixmapEffects. take a look at the 
code in IconWidget to see how it does it if you're interested.

generally, though, just use the Plasma widget classes. you'll save yourself a 
lot of grief. there are rather few reasons to do all your painting.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Software

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20090119/f3176aca/attachment.sig 


More information about the Plasma-devel mailing list