Improvements to text layouting in QML
authorYann Bodson <yann.bodson@nokia.com>
Thu, 22 Sep 2011 01:34:58 +0000 (11:34 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 11 Oct 2011 22:24:34 +0000 (00:24 +0200)
commit6fcaca378b84ada546dc62d72a53a71d0da86ef9
treec4e16677dc694d8b4a5d9b0a9f881fb482622bc2
parent6a9d97f03875210c5cdc88964bf770e023a2131f
Improvements to text layouting in QML

Allow more control over the text layouting process in QML.

Give access to every text line through a hook, this gives the
opportunity to position and resize a line as it is being laid out.
It is then possible to lay out the text in columns or around other
objects.

Task-number: QTBUG-21367
Change-Id: I56dc0c1c4b575dc06360c135098024d0324d3656
Reviewed-on: http://codereview.qt-project.org/5351
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Sanity-Review: Yann Bodson <yann.bodson@nokia.com>
doc/src/declarative/whatsnew.qdoc
src/declarative/items/qsgitemsmodule.cpp
src/declarative/items/qsgtext.cpp
src/declarative/items/qsgtext_p.h
src/declarative/items/qsgtext_p_p.h
tests/auto/declarative/qsgtext/data/lineLayout.qml [new file with mode: 0644]
tests/auto/declarative/qsgtext/tst_qsgtext.cpp
tests/testapplications/textlayout/styledtext-layout.qml [new file with mode: 0644]