Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qmlvisual / qdeclarativetextedit / wrap.qml
1 import QtQuick 1.0
2 import "../shared" 1.0
3
4 Item {
5     height:400
6     width: 200
7     TestTextEdit {
8         width: 200
9         height: 100
10         wrapMode: TextEdit.WordWrap
11         focus: true
12     }
13     //With QTBUG-6273 only the bottom one would be wrapped
14     TestTextEdit {
15         width: 200
16         height: 100
17         wrapMode: TextEdit.WordWrap
18         text: "This is a test that text edit wraps correctly."
19         y:100
20     }
21     TestTextEdit {
22         width: 150
23         height: 100
24         wrapMode: TextEdit.WrapAnywhere
25         text: "This is a test that text edit wraps correctly. thisisaverylongstringwithnospaces"
26         y:200
27     }
28     TestTextEdit {
29         width: 150
30         height: 100
31         wrapMode: TextEdit.Wrap
32         text: "This is a test that text edit wraps correctly. thisisaverylongstringwithnospaces"
33         y:300
34     }
35 }