Fix pre-edit text in in QSGTextEdit
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Wed, 14 Sep 2011 10:13:28 +0000 (12:13 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 15 Sep 2011 09:57:30 +0000 (11:57 +0200)
commit931f631ed8cd9af00a697c641540df442a2377df
tree1f3b00054e17691ff80e41a4472efcaaee818f26
parent65e6e9607dc3f22a7d14c932776b39d5fab738ee
Fix pre-edit text in in QSGTextEdit

We need to include the preedit text when getting the glyphs
for the fragment, and we need to support background formats.
Note: This assumes that the pre-edit text will not span several fragments,
which seems like a reasonable assumption.

Task-number: QTBUG-21261
Change-Id: I7dd28f1221f931893ba1c51cc9e8b9771b2e46c3
Reviewed-on: http://codereview.qt-project.org/4906
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
src/declarative/items/qsgtextnode.cpp
src/declarative/items/qsgtextnode_p.h