summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativetext.cpp
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2010-11-03 04:55:46 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2010-11-03 04:55:46 (GMT)
commitaf15292e4982c11542487d39fc76ccfb8516598f (patch)
treeaa22c66c8f6a0230fdb63162b8794e2d76155bdb /src/declarative/graphicsitems/qdeclarativetext.cpp
parentb2016bbfc9c7389e7b64451417395ceba96af21f (diff)
downloadQt-af15292e4982c11542487d39fc76ccfb8516598f.zip
Qt-af15292e4982c11542487d39fc76ccfb8516598f.tar.gz
Qt-af15292e4982c11542487d39fc76ccfb8516598f.tar.bz2
Regression: QDeclarativeText does not update when text turns empty
Task-number: QTBUG-14865 Reviewed-by: Michael Brasser
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativetext.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativetext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetext.cpp b/src/declarative/graphicsitems/qdeclarativetext.cpp
index 8cb47aa..84f276e 100644
--- a/src/declarative/graphicsitems/qdeclarativetext.cpp
+++ b/src/declarative/graphicsitems/qdeclarativetext.cpp
@@ -219,6 +219,7 @@ void QDeclarativeTextPrivate::updateSize()
QFontMetrics fm(font);
if (text.isEmpty()) {
+ q->setImplicitWidth(0);
q->setImplicitHeight(fm.height());
emit q->paintedSizeChanged();
q->update();