diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2011-09-22 11:34:58 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-12 00:24:34 +0200 |
commit | 6fcaca378b84ada546dc62d72a53a71d0da86ef9 (patch) | |
tree | c4e16677dc694d8b4a5d9b0a9f881fb482622bc2 /doc/src/declarative | |
parent | 6a9d97f03875210c5cdc88964bf770e023a2131f (diff) |
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>
Diffstat (limited to 'doc/src/declarative')
-rw-r--r-- | doc/src/declarative/whatsnew.qdoc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/src/declarative/whatsnew.qdoc b/doc/src/declarative/whatsnew.qdoc index 4efe0da2ff..84245a565f 100644 --- a/doc/src/declarative/whatsnew.qdoc +++ b/doc/src/declarative/whatsnew.qdoc @@ -99,8 +99,6 @@ Added topMargin, bottomMargin, leftMargin, rightMargin, xOrigin, yOrigin propert Image has two new properties: horizontalAlignment and verticalAlignment. It also has a new value for fillMode (Image.Pad) that does not transform the image. -Text will now automatically switch to StyledText instead of RichText if textFormat is set to AutoText. - Grid now has rowSpacing and columnSpacing properties. Positioners now have attached properties that can be used to determine a subitem's location within a @@ -112,6 +110,11 @@ Loader improvements: - now only emits the \c sourceChanged signal when the source is changed and the \c sourceComponentChanged signal when the sourceComponent is changed. It used to emit both signals when one of the properties was changed. +Text improvements: + - a \c onLineLaidOut handler is called for every line during the layout process. This gives the opportunity to position and resize a line as it is being laid out. + - a \c doLayout method was added to trigger the layout from Javascript. + - now automatically switch to StyledText instead of RichText if textFormat is set to AutoText. + PathView now has a \c currentItem property ListView and GridView now have headerItem and footerItem properties (the instantiated |