diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2011-12-13 13:56:42 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-16 02:48:00 +0100 |
commit | 070bddc9a07e63550be35a06d6efb1ece245dc52 (patch) | |
tree | e6471dcffd65efbca950ad2c949a6e1f3757d61a /examples | |
parent | e7fb84adb5d5d9cc5c61db3bbd025f206854bcb4 (diff) |
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>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/righttoleft/textalignment/textalignment.qml | 1 | ||||
-rw-r--r-- | examples/declarative/text/textselection/textselection.qml | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/examples/declarative/righttoleft/textalignment/textalignment.qml b/examples/declarative/righttoleft/textalignment/textalignment.qml index 13abca1fb1..a7af6f1b55 100644 --- a/examples/declarative/righttoleft/textalignment/textalignment.qml +++ b/examples/declarative/righttoleft/textalignment/textalignment.qml @@ -361,6 +361,7 @@ Rectangle { font.pixelSize: 24 cursorVisible: true wrapMode: TextEdit.WordWrap + textFormat: TextEdit.RichText horizontalAlignment: root.horizontalAlignment LayoutMirroring.enabled: root.mirror Rectangle { diff --git a/examples/declarative/text/textselection/textselection.qml b/examples/declarative/text/textselection/textselection.qml index a25d0df621..2e8268d8ee 100644 --- a/examples/declarative/text/textselection/textselection.qml +++ b/examples/declarative/text/textselection/textselection.qml @@ -95,6 +95,7 @@ Rectangle { height: flick.height focus: true wrapMode: TextEdit.Wrap + textFormat: TextEdit.RichText onCursorRectangleChanged: flick.ensureVisible(cursorRectangle) |