Fix alignment bug in QQuickText with multi-line text and implicit width
authorYann Bodson <yann.bodson@nokia.com>
Thu, 3 May 2012 05:00:33 +0000 (15:00 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 3 May 2012 06:05:33 +0000 (08:05 +0200)
commitf50c0af7532247b3a9c38244ec297da97a8e31ab
tree263c6746f8b607b890c3ee2af8dd9288efe660f1
parentbf817782e6dfeb8455febe3e481bcdb4c383ed05
Fix alignment bug in QQuickText with multi-line text and implicit width

If the horizontal alignment is not left and the width of the text is not
known during the first pass, we need to relayout once we know the
maximum line width.

Task-number: QTBUG-18617
Change-Id: I0cad100946beda151034067e23439185684de144
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
src/quick/items/qquicktext.cpp
tests/auto/quick/qquicktext/data/hAlignImplicitWidth.qml [new file with mode: 0644]
tests/auto/quick/qquicktext/tst_qquicktext.cpp