Don't clip the cursor at the far right of a TextInput.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Wed, 27 Jul 2011 04:23:14 +0000 (14:23 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 28 Jul 2011 02:34:09 +0000 (04:34 +0200)
commit945aba32800d5a22fa01694a81d4dfe2c23e853a
treeee25949e178b6c5aba5e5ace7cd3cc0b739f8550
parentae4bc85da09983c7c2ea36a283b6c123223b3287
Don't clip the cursor at the far right of a TextInput.

The cursor is allowed to exceed the boundaries of a TextInput so that
the text alignment is consistent with the Text element and the bounding
rect of TextInput is expanded to allow for that.  To avoid clipping
the contentSize also needs to be expanded, and the horizontal scrolling
should be calculated against the non-expanded size.

Task-number: QTBUG-18818
Change-Id: I09e3a7aff9c2e8a333e8a3f9796683563b3e124a
Reviewed-on: http://codereview.qt.nokia.com/2242
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/items/qsgtextinput.cpp
tests/auto/declarative/qsgtextinput/tst_qsgtextinput.cpp