Content size should not include trailing spaces.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Thu, 15 Mar 2012 01:17:09 +0000 (11:17 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 21 Mar 2012 04:18:35 +0000 (05:18 +0100)
commit0e1baa28e59ccd1739ee1957035c10518aed8ece
treebdb1d141382f3eaa1c460e45d204818461d3ec84
parent122e8df400e5a8bd4df1655785e6714110ffce93
Content size should not include trailing spaces.

Excluding trailing spaces from the content size means the cursor
position also needs to considered in determining the width used
by the text as unwrapped white space can push the cursor over
the width of the item.

Also corrects an auto scroll issue with right to left text
identified in extending the tests.

Task-number: QTBUG-24630

Change-Id: Iaab9eac03824b22f507154fa1d6e55376bd075a0
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
src/quick/items/qquicktextinput.cpp
tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp