summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2011-03-22 17:15:21 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2011-03-22 17:15:21 (GMT)
commita5c3c11e3e2204da6c8be9af98b38929366fafb8 (patch)
treee4aa81a4cd1783875b3f77fb75afb6c151801365 /src/declarative/graphicsitems
parentb268977478477952a5067ca6389b73d00d1807d2 (diff)
parent265074001db00920abbb0defba69743ef71c4cc0 (diff)
downloadQt-a5c3c11e3e2204da6c8be9af98b38929366fafb8.zip
Qt-a5c3c11e3e2204da6c8be9af98b38929366fafb8.tar.gz
Qt-a5c3c11e3e2204da6c8be9af98b38929366fafb8.tar.bz2
Merge remote-tracking branch 'origin/4.7' into qt-master-from-4.7
Diffstat (limited to 'src/declarative/graphicsitems')
-rw-r--r--src/declarative/graphicsitems/qdeclarativetext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetext.cpp b/src/declarative/graphicsitems/qdeclarativetext.cpp
index 994c01e..3ab6417 100644
--- a/src/declarative/graphicsitems/qdeclarativetext.cpp
+++ b/src/declarative/graphicsitems/qdeclarativetext.cpp
@@ -1393,10 +1393,10 @@ QRectF QDeclarativeText::boundingRect() const
case AlignTop:
break;
case AlignBottom:
- rect.setY(h - rect.height());
+ rect.moveTop(h - rect.height());
break;
case AlignVCenter:
- rect.setY((h - rect.height()) / 2);
+ rect.moveTop((h - rect.height()) / 2);
break;
}