Review Request: Bug with Plasma::Delegate text painter

Jesse L. Zamora xtremek2008 at aim.com
Fri Nov 21 14:42:15 CET 2008


>     there's no point in painting this if the text fits, right? that would
> avoid painting this for every single item.
>
>
> - Aaron

Yes, that's why I check before painting the gradient if the titleRect or 
subTitleRect is too long, and if it is, I draw the gradient.

I've used it here for awhile, and it works pretty nicely. It also works with 
the device notifier when say a USB drive name is too long, and makes it look 
pretty nice!! And the slowdown from drawing the gradient is unnoticeable! 

Xtreme Kommander


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20081121/9de6b8a9/attachment.htm 


More information about the Plasma-devel mailing list