Remove uneccessary layout in TextInput initialization.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Wed, 21 Dec 2011 07:36:13 +0000 (17:36 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 21 Dec 2011 07:57:12 +0000 (08:57 +0100)
commit71b64a4ab73b112b3f94e6a4668e534eb4d16d93
tree00a457c7d590f1d9d10937806079cb255be0bc7b
parent8def833e2077ef3554992f930ba7b863d8145a5f
Remove uneccessary layout in TextInput initialization.

The layout was only done to ensure there was always at least one
QTextLine in the layout to avoid validity checks later, but since
lineForTextPosition can return an invalid QTextLine the checks are still
needed anyway.

Change-Id: Iae65e3460812a60e2aafecd553bf4241bd640d04
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
src/quick/items/qquicktextinput.cpp
src/quick/items/qquicktextinput_p.h
tests/auto/qtquick2/qquicktextinput/tst_qquicktextinput.cpp