Add a length property to TextEdit.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Mon, 28 Nov 2011 04:29:36 +0000 (14:29 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 29 Nov 2011 03:34:11 +0000 (04:34 +0100)
commit2e8059bfb80230d82bf98d7791b4dfc1d3706658
treef5fa2314bfc8a527cf41f7986e33ed19eeb00ecf
parentc648598a8ba8bf72b5d556211df877578d5f5b64
Add a length property to TextEdit.

This returns the length of the unformatted text in a TextEdit which
should be cheaper to query than the length of the text property and
meaningful in the context of the selection and cursor properties.

Task-number: QTBUG-18949
Change-Id: Ia25c4553693923f97d299f1fdb8bfcf7f5937b13
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/items/qquicktextedit.cpp
src/declarative/items/qquicktextedit_p.h
tests/auto/declarative/qquicktextedit/tst_qquicktextedit.cpp