summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-04-22 05:53:44 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-04-22 23:46:03 (GMT)
commit05873d7662947ef59f429f5e3b63c1b7a3d71cd3 (patch)
tree7298d23fc4057ed21d2ff64fc961ccc408b67ca8
parent64d384e4ec8d9cac98dba3feaab96658b1e27e87 (diff)
downloadQt-05873d7662947ef59f429f5e3b63c1b7a3d71cd3.zip
Qt-05873d7662947ef59f429f5e3b63c1b7a3d71cd3.tar.gz
Qt-05873d7662947ef59f429f5e3b63c1b7a3d71cd3.tar.bz2
Workaround no longer needed.
-rw-r--r--src/declarative/graphicsitems/qdeclarativerectangle.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativerectangle.cpp b/src/declarative/graphicsitems/qdeclarativerectangle.cpp
index 3daa83f..0328f91 100644
--- a/src/declarative/graphicsitems/qdeclarativerectangle.cpp
+++ b/src/declarative/graphicsitems/qdeclarativerectangle.cpp
@@ -357,9 +357,7 @@ void QDeclarativeRectangle::generateBorderedRect()
Q_D(QDeclarativeRectangle);
if (d->rectImage.isNull()) {
const int pw = d->pen && d->pen->isValid() ? d->pen->width() : 0;
- // Adding 5 here makes qDrawBorderPixmap() paint correctly with smooth: true
- // Ideally qDrawBorderPixmap() would be fixed - QTBUG-7999
- d->rectImage = QPixmap(pw*2 + 5, pw*2 + 5);
+ d->rectImage = QPixmap(pw*2 + 3, pw*2 + 3);
d->rectImage.fill(Qt::transparent);
QPainter p(&(d->rectImage));
p.setRenderHint(QPainter::Antialiasing);