Fix clipping of TextInput contents.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Wed, 4 Jan 2012 06:12:17 +0000 (16:12 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 4 Jan 2012 23:55:28 +0000 (00:55 +0100)
commit82803517a68ee6d6111fb71ba5cf44e9aa302b5f
treed383a92bc1e6ed94a9b9108ee94aaf7c0a66bc89
parentf9c10b52dda4fe9a46a436edafaf0c2c199a0980
Fix clipping of TextInput contents.

The boundingRect represents the clip rectangle of an item rather than
the size and position of its unclipped content.  This would prevent any
content from being clipped except the boundingRect is only re-evaluated
when the size of the item changes so the content is instead clipped to
the size of the original content.

Task-number: QTBUG-23422
Change-Id: I96f830f833129b3230f65452db67b00028c40d6a
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/quick/items/qquicktextinput.cpp
tests/auto/qtquick2/qquicktextinput/tst_qquicktextinput.cpp