tasks painting semplification

Aaron J. Seigo aseigo at kde.org
Mon Oct 27 23:51:48 CET 2008


On Monday 27 October 2008, Jamboarder wrote:
> > From: Marco Martin <notmart at gmail.com>
> > aaanyways, the painting function it's really a mess because when i added
> > the support for svg theming i decided to add a fallback for every
> > element, so when it does not exist in the svg just paints a rounded
> > rectangle, so the code is 80% manual qpainter cruft.
> > now, would be interesting as a general rule how to behave in this cases,
> > i think that just removing the fallbackswould make way more cleaner code.
> > i kinda remember chatting with aaron on a similar situation (don't
> > remember what was the theme/plasmoid in particular) was decided to just
> > consider it a problem of who makes the theme to ensure all the elements
> > are in what do you guys think?
>
> As long as the default theme tasks.svg has the required elements, it should
> behave much the same as other theme elements: When the theme author omits
> the svg, use the default theme svg.  I'm all for doing away with the
> qpainter cruft.

+1

-- 
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/20081027/f2f20328/attachment.sig 


More information about the Plasma-devel mailing list