summaryrefslogtreecommitdiffstats
path: root/src/svg/qsvgtinydocument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/svg/qsvgtinydocument.cpp')
-rw-r--r--src/svg/qsvgtinydocument.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/svg/qsvgtinydocument.cpp b/src/svg/qsvgtinydocument.cpp
index e45a4fd..246df7b 100644
--- a/src/svg/qsvgtinydocument.cpp
+++ b/src/svg/qsvgtinydocument.cpp
@@ -235,12 +235,7 @@ void QSvgTinyDocument::draw(QPainter *p, const QRectF &bounds)
//sets default style on the painter
//### not the most optimal way
mapSourceToTarget(p, bounds);
- QPen pen(Qt::NoBrush, 1, Qt::SolidLine, Qt::FlatCap, Qt::SvgMiterJoin);
- pen.setMiterLimit(4);
- p->setPen(pen);
- p->setBrush(Qt::black);
- p->setRenderHint(QPainter::Antialiasing);
- p->setRenderHint(QPainter::SmoothPixmapTransform);
+ initPainter(p);
QList<QSvgNode*>::iterator itr = m_renderers.begin();
applyStyle(p, m_states);
while (itr != m_renderers.end()) {
@@ -311,7 +306,6 @@ void QSvgTinyDocument::draw(QPainter *p, const QString &id,
p->restore();
}
-
QSvgNode::Type QSvgTinyDocument::type() const
{
return Doc;