diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2010-11-03 04:55:46 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2010-11-03 04:55:46 (GMT) |
commit | af15292e4982c11542487d39fc76ccfb8516598f (patch) | |
tree | aa22c66c8f6a0230fdb63162b8794e2d76155bdb /src/declarative/graphicsitems/qdeclarativetext.cpp | |
parent | b2016bbfc9c7389e7b64451417395ceba96af21f (diff) | |
download | Qt-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.cpp | 1 |
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(); |