Handle additional format ranges when itemizing.
authorPierre Rossi <pierre.rossi@digia.com>
Fri, 10 Feb 2012 19:42:13 +0000 (20:42 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 8 Oct 2012 15:22:56 +0000 (17:22 +0200)
commit101d04681f4ceb7410681eae684534a206a9d90a
treebb037f84ac82fc9431a72ed7ec9ecdff18ddef7c
parent0e8a2788d84c814b698848b699af8a2c8ba3179f
Handle additional format ranges when itemizing.

This is useful when the additional formats are used on a
text layout using a raw font. It can also come in handy for
input methods operating on a QTextDocument.
We now consider all format range edges to generate the
associated items. The capitalization can be overridden via
the additionnal formats mechanism.

Adds an autotest that checks that this works with font capitalization.

Change-Id: I782d2c48d05b0dfbad480a9ca77198465292b358
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
src/gui/text/qtextengine.cpp
tests/auto/gui/text/qtextlayout/tst_qtextlayout.cpp
tests/auto/widgets/widgets/qtextedit/tst_qtextedit.cpp
tests/benchmarks/gui/text/qtext/main.cpp