QQuickTextEdit: make the update logic work with multiple text frames
authorPierre Rossi <pierre.rossi@digia.com>
Mon, 25 Mar 2013 15:52:45 +0000 (16:52 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 24 Apr 2013 12:12:01 +0000 (14:12 +0200)
commit159ccaa57f6f653c36af47910b98e106be5112bc
treee5dd481212528e35cfa804732f67df047e200e5f
parenta16f3c660b3a28e011b38bd63de36e801821e56c
QQuickTextEdit: make the update logic work with multiple text frames

We can't assume that the text nodes are added in order since we're
iterating over all the blocks of a text frame before processing its child
text frames. The only way for all this not to collapse is to sort the text
nodes once we're done each time we're replacing/adding new ones.

Task-number: QTBUG-30349
Change-Id: Ia5d804f7f196b2348fd68fdd62a6585c189baaa4
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
src/quick/items/qquicktextedit.cpp