[Panel-devel] svg rendering

Sean Harmer sh at theharmers.co.uk
Wed Oct 31 11:10:05 CET 2007


On Wednesday 31 October 2007 03:13:33 Aaron J. Seigo wrote:
> On Tuesday 30 October 2007, Sean Harmer wrote:
>
> i haven't tested it yet, sorry =) i'm busy breaking krunenr. however:
> > * I've added a function to Plasma::Svg to paint only the dirty rects
> > rather than the entire SVG but I've not modified any applets to take
> > advantage of this yet and so it is completely untested.
>
> that's great news for, e.g. desktop wallpapers. however this:
>
> +void Svg::paint(QPainter* painter,
> +                const QStyleOptionGraphicsItem *option,
> +                const QString& elementID)
>
> ties it pretty tightly to QGraphicsItem, which we don't want.
>
> what we probably want is:
>
> void Svg::paint(QPainter* painter,
>                 const QRectF& dest,
> 	 const QRectF& src,
>                 const QString& elementID)
> {
No problem at all. I'll fix that when I next work on it. I was just thinking 
that this stuff might be of use for kdegames, kdeedu et al.

Sean


More information about the Panel-devel mailing list