Fix preedit text visibility for TextEdit
authorJiang Jiang <jiang.jiang@nokia.com>
Fri, 13 Jan 2012 10:06:10 +0000 (11:06 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 16 Jan 2012 11:36:46 +0000 (12:36 +0100)
commita9d2ef2d2a6a2db16ca3d703f671c3aa396cd99a
treea31251ff796f507dd3a1d8649f0e7097822d1b6f
parentdf6338a7b4ff43b1bb0538c44c632d122a7c3766
Fix preedit text visibility for TextEdit

For an empty TextEdit with preedit text, we need to add the text
separately since the blockIterator will not go through that case.
Also fixed preedit text appended at the end of any commited text.

Move the code for adding text into SelectionEngine so that we can
reuse it for adding preedit text.

Task-number: QTBUG-22647
Change-Id: Id4fe04099b16949ff5de0747881c6dc96ef0673f
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
src/quick/items/qquicktextnode.cpp