Cleanup whitespace

This commit is contained in:
David Edmundson 2014-02-21 00:09:30 +01:00
parent fd4bf875a7
commit d7b8ba265b
2 changed files with 4 additions and 6 deletions

View File

@ -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<QSGSimpleTextureNode*>(oldNode);
QSGSimpleTextureNode *textureNode = static_cast<QSGSimpleTextureNode *>(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;

View File

@ -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()) :