summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-11-23 07:10:24 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-11-23 07:10:24 (GMT)
commit65a507009c543ddf3272f5a52013f33c7d5965bc (patch)
tree4f371692e5028e7b1529bfb195df78bc307f99b9 /src/declarative
parent5e2ecb4bb92daef8eb37622484a9fdf603f8536d (diff)
downloadQt-65a507009c543ddf3272f5a52013f33c7d5965bc.zip
Qt-65a507009c543ddf3272f5a52013f33c7d5965bc.tar.gz
Qt-65a507009c543ddf3272f5a52013f33c7d5965bc.tar.bz2
Parameter order was wrong.
(broke eg. webbrowser side shadows)
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/graphicsitems/qmlgraphicsborderimage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicsborderimage.cpp b/src/declarative/graphicsitems/qmlgraphicsborderimage.cpp
index 6f953bc..d7d725b 100644
--- a/src/declarative/graphicsitems/qmlgraphicsborderimage.cpp
+++ b/src/declarative/graphicsitems/qmlgraphicsborderimage.cpp
@@ -394,7 +394,7 @@ void QmlGraphicsBorderImage::paint(QPainter *p, const QStyleOptionGraphicsItem *
p->setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform, d->smooth);
const QmlGraphicsScaleGrid *border = d->getScaleGrid();
- QMargins margins(border->top(), border->left(), border->bottom(), border->right());
+ QMargins margins(border->left(), border->top(), border->right(), border->bottom());
QTileRules rules((Qt::TileRule)d->horizontalTileMode, (Qt::TileRule)d->verticalTileMode);
qDrawBorderPixmap(p, QRect(0, 0, (int)d->width, (int)d->height), margins, d->pix, d->pix.rect(), margins, rules);
if (d->smooth) {