diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-05-20 07:14:36 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-05-20 07:15:35 (GMT) |
commit | a948c797e0c45c965ada005b34c274514a3c4d42 (patch) | |
tree | 111d199e9d6a0fbe4cbe57c2dba2eb5ef8dd4b78 | |
parent | 08a0ee7946d7c6575a32919cb147cdc34af7e3bc (diff) | |
download | Qt-a948c797e0c45c965ada005b34c274514a3c4d42.zip Qt-a948c797e0c45c965ada005b34c274514a3c4d42.tar.gz Qt-a948c797e0c45c965ada005b34c274514a3c4d42.tar.bz2 |
Work around rendering bug in Rectangle.
Task-number: QTBUG-10765
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativerectangle.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativerectangle.cpp b/src/declarative/graphicsitems/qdeclarativerectangle.cpp index ccabbde..d098aa0 100644 --- a/src/declarative/graphicsitems/qdeclarativerectangle.cpp +++ b/src/declarative/graphicsitems/qdeclarativerectangle.cpp @@ -380,7 +380,9 @@ void QDeclarativeRectangle::generateBorderedRect() key += d->pen->color().name() % QString::number(d->pen->color().alpha(), 16); if (!QPixmapCache::find(key, &d->rectImage)) { - d->rectImage = QPixmap(pw*2 + 3, pw*2 + 3); + // Adding 5 here makes qDrawBorderPixmap() paint correctly with smooth: true + // See QTBUG-7999 and QTBUG-10765 for more details. + d->rectImage = QPixmap(pw*2 + 5, pw*2 + 5); d->rectImage.fill(Qt::transparent); QPainter p(&(d->rectImage)); p.setRenderHint(QPainter::Antialiasing); |