Ensure the cursor delegate position is correct when wrapping.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Wed, 18 Apr 2012 07:20:24 +0000 (17:20 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 19 Apr 2012 04:16:28 +0000 (06:16 +0200)
commit7bd68f6447c79aa58a9854bb6c44db00ea36a06a
treefd5145dda805cd19a2aa2541567a280a5d1fb915
parent458eb3cce93162dced2649e44c59f27bb088f07c
Ensure the cursor delegate position is correct when wrapping.

When inserting text into a TextEdit with implicit width and wrapping
the cursor delegate position has to be updated after the width is
expanded to the implicit width otherwise it will be positioned in a
wrapped location.

Change-Id: Ibcb709ec1b4f6827ea8ae919f2e0c932c7372869
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 files changed:
src/quick/items/qquicktextcontrol.cpp
src/quick/items/qquicktextcontrol_p.h
src/quick/items/qquicktextcontrol_p_p.h
src/quick/items/qquicktextedit.cpp
tests/auto/quick/qquicktextedit/data/cursorTestExternal.qml
tests/auto/quick/qquicktextedit/data/cursorTestInline.qml
tests/auto/quick/qquicktextedit/data/inputMethodEvent.qml
tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp
tests/auto/quick/qquicktextinput/data/cursorTestExternal.qml
tests/auto/quick/qquicktextinput/data/cursorTestInline.qml
tests/auto/quick/qquicktextinput/data/inputMethodEvent.qml
tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp