Make PlainText the default textFormat of a TextEdit.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Tue, 13 Dec 2011 03:56:42 +0000 (13:56 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 16 Dec 2011 01:48:00 +0000 (02:48 +0100)
commit070bddc9a07e63550be35a06d6efb1ece245dc52
treee6471dcffd65efbca950ad2c949a6e1f3757d61a
parente7fb84adb5d5d9cc5c61db3bbd025f206854bcb4
Make PlainText the default textFormat of a TextEdit.

With AutoText as the default it's easy to assume that a TextEdit accepts
plain text or rich text only which can lead to unexpected behaviour
when user supplied text is does not have the expected formatting and
implicitly changes the text format.

Task-number: QTBUG-23109
Change-Id: I08900fb23545672fd0e181058633bafeb826a746
Reviewed-by: Martin Jones <martin.jones@nokia.com>
doc/src/declarative/whatsnew.qdoc
examples/declarative/righttoleft/textalignment/textalignment.qml
examples/declarative/text/textselection/textselection.qml
src/quick/items/qquicktextedit.cpp
src/quick/items/qquicktextedit_p_p.h
tests/auto/qtquick2/qquicktextedit/data/horizontalAlignment_RightToLeft.qml
tests/auto/qtquick2/qquicktextedit/tst_qquicktextedit.cpp