Fix access to context properties within TextEdit.cursorDelegate
authorAndrew den Exter <andrew.den-exter@nokia.com>
Tue, 14 Feb 2012 02:55:38 +0000 (12:55 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 14 Feb 2012 06:48:38 +0000 (07:48 +0100)
commita4b0ac2af03f4a78469a3dc0e04f785cde4ab381
treee67320e3e6f8bf215965c843c7c6838463b28b72
parent452be83f43f190cce04b8dc6b4b5f2e797c5886b
Fix access to context properties within  TextEdit.cursorDelegate

Don't create the cursorDelegate instance before componentComplete as
the context may not be fully populated prior to that.

Task-number: QTBUG-21780

Change-Id: I6ca8a24989bc28e5c5ca06d61a85e32ff630ce7c
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/quick/items/qquicktextedit.cpp
tests/auto/qtquick2/qquicktextedit/data/Cursor.qml [new file with mode: 0644]
tests/auto/qtquick2/qquicktextedit/data/cursorTestExternal.qml [new file with mode: 0644]
tests/auto/qtquick2/qquicktextedit/data/cursorTestInline.qml [new file with mode: 0644]
tests/auto/qtquick2/qquicktextedit/tst_qquicktextedit.cpp
tests/auto/qtquick2/qquicktextinput/data/Cursor.qml [new file with mode: 0644]
tests/auto/qtquick2/qquicktextinput/data/cursorTestExternal.qml [new file with mode: 0644]
tests/auto/qtquick2/qquicktextinput/data/cursorTestInline.qml [new file with mode: 0644]
tests/auto/qtquick2/qquicktextinput/tst_qquicktextinput.cpp