> 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
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel