diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-08-25 11:48:13 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-08-25 11:49:09 (GMT) |
commit | a8087d61442acb8cfbc90b79bdd10ad192c6c06a (patch) | |
tree | d27609553273805990d07e43ca90223dcda8c7d5 /src/svg | |
parent | 1666247307a70bbf180a9e63bb546029994bd194 (diff) | |
download | Qt-a8087d61442acb8cfbc90b79bdd10ad192c6c06a.zip Qt-a8087d61442acb8cfbc90b79bdd10ad192c6c06a.tar.gz Qt-a8087d61442acb8cfbc90b79bdd10ad192c6c06a.tar.bz2 |
Fix the default painter state in QSvgTinyDocument::draw
Fix the eyes border in plasma
Author: Kim
Diffstat (limited to 'src/svg')
-rw-r--r-- | src/svg/qsvgtinydocument.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/svg/qsvgtinydocument.cpp b/src/svg/qsvgtinydocument.cpp index ba610e7..d7cbcb2 100644 --- a/src/svg/qsvgtinydocument.cpp +++ b/src/svg/qsvgtinydocument.cpp @@ -283,7 +283,9 @@ void QSvgTinyDocument::draw(QPainter *p, const QString &id, QTransform originalTransform = p->worldTransform(); //XXX set default style on the painter - p->setPen(Qt::NoPen); + QPen pen(QBrush(Qt::NoBrush), 1, Qt::SolidLine, Qt::FlatCap, Qt::MiterJoin); + pen.setMiterLimit(4); + p->setPen(pen); p->setBrush(Qt::black); p->setRenderHint(QPainter::Antialiasing); p->setRenderHint(QPainter::SmoothPixmapTransform); |