diff --git a/src/declarativeimports/core/svgitem.cpp b/src/declarativeimports/core/svgitem.cpp index d8ed6ed9c..b7f2d42fa 100644 --- a/src/declarativeimports/core/svgitem.cpp +++ b/src/declarativeimports/core/svgitem.cpp @@ -123,16 +123,16 @@ bool SvgItem::smooth() const return m_smooth; } -QSGNode* SvgItem::updatePaintNode(QSGNode* oldNode, UpdatePaintNodeData* updatePaintNodeData) +QSGNode *SvgItem::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *updatePaintNodeData) { - Q_UNUSED(updatePaintNodeData); + Q_UNUSED(updatePaintNodeData) if (!window() || !m_svg) { delete oldNode; return 0; } - QSGSimpleTextureNode *textureNode = static_cast(oldNode); + QSGSimpleTextureNode *textureNode = static_cast(oldNode); if (!textureNode) { textureNode = new QSGSimpleTextureNode; } @@ -149,7 +149,7 @@ QSGNode* SvgItem::updatePaintNode(QSGNode* oldNode, UpdatePaintNodeData* updateP delete m_texture; m_texture = window()->createTextureFromImage(image); textureNode->setTexture(m_texture); - textureNode->setRect(0,0, width(), height()); + textureNode->setRect(0, 0, width(), height()); } return textureNode; diff --git a/src/plasma/svg.cpp b/src/plasma/svg.cpp index 3528de3e6..eaeab93fc 100644 --- a/src/plasma/svg.cpp +++ b/src/plasma/svg.cpp @@ -673,8 +673,6 @@ QImage Svg::image(const QString &elementID) return pixmap(elementID).toImage(); } - - void Svg::paint(QPainter *painter, const QPointF &point, const QString &elementID) { QPixmap pix((elementID.isNull() || d->multipleImages) ? d->findInCache(elementID, size()) :