get rid of matrix removal for now so that things actually draw properly in graphicsitems

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=666238
This commit is contained in:
Aaron J. Seigo 2007-05-19 08:32:22 +00:00
parent a9ebfb6a14
commit b8253cda5b

14
svg.cpp
View File

@ -133,10 +133,10 @@ void Svg::paint( QPainter* painter, const QPointF& point, const QString& element
QPixmap pix; QPixmap pix;
d->findInCache( painter, pix, elementID ); d->findInCache( painter, pix, elementID );
QMatrix matrix = painter->worldMatrix(); /* QMatrix matrix = painter->worldMatrix();
painter->setWorldMatrix( QMatrix() ); painter->setWorldMatrix( QMatrix() );*/
painter->drawPixmap( point.toPoint(), pix ); painter->drawPixmap( point.toPoint(), pix );
painter->setWorldMatrix( matrix ); // painter->setWorldMatrix( matrix );
} }
void Svg::paint( QPainter* painter, int x, int y, const QString& elementID ) void Svg::paint( QPainter* painter, int x, int y, const QString& elementID )
@ -149,10 +149,10 @@ void Svg::paint( QPainter* painter, const QRectF& rect, const QString& elementID
QPixmap pix; QPixmap pix;
d->findInCache( painter, pix, elementID ); d->findInCache( painter, pix, elementID );
QMatrix matrix = painter->worldMatrix(); /* QMatrix matrix = painter->worldMatrix();
painter->setWorldMatrix( QMatrix() ); painter->setWorldMatrix( QMatrix() );*/
painter->drawPixmap( rect.toRect(), pix ); painter->drawPixmap( rect, pix, rect );
painter->setWorldMatrix( matrix ); // painter->setWorldMatrix( matrix );
} }
void Svg::resize( int width, int height ) void Svg::resize( int width, int height )