diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-06-23 06:55:04 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-06-23 06:57:01 (GMT) |
commit | b1c128415894686d61b3d568e5117ba96dd4c74e (patch) | |
tree | d0bc67e4273b31d1522ee72f7885b0d58ec8f9e1 /src/declarative/graphicsitems/qdeclarativerectangle.cpp | |
parent | ae3e6af047e952694637bf41b1afd986d10068c1 (diff) | |
download | Qt-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.cpp | 1 |
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); |