The clock now shows (and moves) SVG hands. I had to do an hack on Plasma::Svg to make it work, it was doing strange things with the plasmoid painter, and especially its coordinate system, check the differences in lib/svg.cpp to see what changed.
Still have a couple of problems with hands other than second, and for the black thingy in the middle. Too tired right now, will check (and hopefully fix) them again tomorrow. Let's party though! The first (mostly) working plasmoid goes public! Yay! CCMAIL:panel-devel@kde.org svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=666767
This commit is contained in:
parent
08707215dd
commit
4de7a36e29
4
svg.cpp
4
svg.cpp
@ -146,8 +146,10 @@ void Svg::paint( QPainter* painter, int x, int y, const QString& elementID )
|
|||||||
|
|
||||||
void Svg::paint( QPainter* painter, const QRectF& rect, const QString& elementID )
|
void Svg::paint( QPainter* painter, const QRectF& rect, const QString& elementID )
|
||||||
{
|
{
|
||||||
|
// QPixmap pix(rect.width(), rect.height());
|
||||||
QPixmap pix;
|
QPixmap pix;
|
||||||
d->findInCache( painter, pix, elementID );
|
QPainter *pain = new QPainter();
|
||||||
|
d->findInCache( pain, pix, elementID );
|
||||||
|
|
||||||
/* QMatrix matrix = painter->worldMatrix();
|
/* QMatrix matrix = painter->worldMatrix();
|
||||||
painter->setWorldMatrix( QMatrix() );*/
|
painter->setWorldMatrix( QMatrix() );*/
|
||||||
|
Loading…
Reference in New Issue
Block a user