diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-10-05 02:42:39 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-10-05 02:42:39 (GMT) |
commit | 9d3505cec4749c86ca2782726388c040941ed25c (patch) | |
tree | 3146bcd1233ff49eddd022b7810ed8973771c6d7 /src/declarative | |
parent | 587a0ca36000d9446f2ec9be7276bd734ee4b999 (diff) | |
download | Qt-9d3505cec4749c86ca2782726388c040941ed25c.zip Qt-9d3505cec4749c86ca2782726388c040941ed25c.tar.gz Qt-9d3505cec4749c86ca2782726388c040941ed25c.tar.bz2 |
Fix Rectangle size when drawing with qDrawBorderPixmap.
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/fx/qfxrect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/fx/qfxrect.cpp b/src/declarative/fx/qfxrect.cpp index eb8103c..0648ac4 100644 --- a/src/declarative/fx/qfxrect.cpp +++ b/src/declarative/fx/qfxrect.cpp @@ -459,7 +459,7 @@ void QFxRect::drawRect(QPainter &p) QMargins margins(xOffset, yOffset, xOffset, yOffset); QTileRules rules(Qt::StretchTile, Qt::StretchTile); - qDrawBorderPixmap(&p, QRect(-pw/2, -pw/2, d->rectImage.width()/2 + xOffset*2, d->rectImage.height()/2 + yOffset*2), margins, d->rectImage, d->rectImage.rect(), margins, rules); + qDrawBorderPixmap(&p, QRect(-pw/2, -pw/2, width()+pw, height()+pw), margins, d->rectImage, d->rectImage.rect(), margins, rules); if (d->smooth) { p.setRenderHint(QPainter::Antialiasing, oldAA); |