summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativerectangle.cpp
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2010-03-25 06:16:42 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2010-03-25 06:42:10 (GMT)
commit4ad6036f30db22562df4478babdc61820d94f774 (patch)
tree8c291be60b51db2eebcc1c90bed16340acfbed5f /src/declarative/graphicsitems/qdeclarativerectangle.cpp
parent9ace4e68eb0636284ecf73ed82e4518bbf0208be (diff)
downloadQt-4ad6036f30db22562df4478babdc61820d94f774.zip
Qt-4ad6036f30db22562df4478babdc61820d94f774.tar.gz
Qt-4ad6036f30db22562df4478babdc61820d94f774.tar.bz2
Build Fix and port to new width and height properties
Reviewed-by:Martin Jones
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativerectangle.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativerectangle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativerectangle.cpp b/src/declarative/graphicsitems/qdeclarativerectangle.cpp
index 207d05e..b82fb53 100644
--- a/src/declarative/graphicsitems/qdeclarativerectangle.cpp
+++ b/src/declarative/graphicsitems/qdeclarativerectangle.cpp
@@ -470,7 +470,7 @@ void QDeclarativeRectangle::drawRect(QPainter &p)
QRectF QDeclarativeRectangle::boundingRect() const
{
Q_D(const QDeclarativeRectangle);
- return QRectF(-d->paintmargin, -d->paintmargin, d->width+d->paintmargin*2, d->height+d->paintmargin*2);
+ return QRectF(-d->paintmargin, -d->paintmargin, d->width()+d->paintmargin*2, d->height()+d->paintmargin*2);
}
QT_END_NAMESPACE