summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativerectangle.cpp
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-06-23 06:55:04 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-06-23 06:57:01 (GMT)
commitb1c128415894686d61b3d568e5117ba96dd4c74e (patch)
treed0bc67e4273b31d1522ee72f7885b0d58ec8f9e1 /src/declarative/graphicsitems/qdeclarativerectangle.cpp
parentae3e6af047e952694637bf41b1afd986d10068c1 (diff)
downloadQt-b1c128415894686d61b3d568e5117ba96dd4c74e.zip
Qt-b1c128415894686d61b3d568e5117ba96dd4c74e.tar.gz
Qt-b1c128415894686d61b3d568e5117ba96dd4c74e.tar.bz2
Use Pen with Qt::MiterJoin when drawing Rectangles with gradients
Task-number: QTBUG-11624
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativerectangle.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativerectangle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativerectangle.cpp b/src/declarative/graphicsitems/qdeclarativerectangle.cpp
index 2756877..c49be46 100644
--- a/src/declarative/graphicsitems/qdeclarativerectangle.cpp
+++ b/src/declarative/graphicsitems/qdeclarativerectangle.cpp
@@ -446,6 +446,7 @@ void QDeclarativeRectangle::drawRect(QPainter &p)
p.setRenderHint(QPainter::Antialiasing);
if (d->pen && d->pen->isValid()) {
QPen pn(QColor(d->pen->color()), d->pen->width());
+ pn.setJoinStyle(Qt::MiterJoin);
p.setPen(pn);
} else {
p.setPen(Qt::NoPen);