Fix TextEdit vertical alignment.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Fri, 3 Feb 2012 03:34:57 +0000 (13:34 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 6 Feb 2012 07:28:23 +0000 (08:28 +0100)
commit5260a562a96ddab77ec22693997e2c784e3b6613
tree2fa1ec31715d20dc04b9a9d52c3120a6b227493f
parent5b9e19ff591f9460adc7a85fa9fe822c05ab3b41
Fix TextEdit vertical alignment.

Don't ignore the position of a QTextDocument when contructing a text
node, and translate the rectangle returned by positionToRectangle by
the y offset.

Task-number: QTBUG-23935
Change-Id: I55a2b69a32a8b623be7e36de54ad083c2f8591e5
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/quick/items/qquicktextedit.cpp
src/quick/items/qquicktextnode.cpp
tests/auto/qtquick2/qquicktextedit/tst_qquicktextedit.cpp