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:
parent
a9ebfb6a14
commit
b8253cda5b
14
svg.cpp
14
svg.cpp
@ -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 )
|
||||||
|
Loading…
Reference in New Issue
Block a user