equal
deleted
inserted
replaced
|
1 import Qt 4.7 |
|
2 |
|
3 Item { |
|
4 height:400 |
|
5 width: 200 |
|
6 TextEdit { |
|
7 width: 200 |
|
8 height: 100 |
|
9 wrapMode: TextEdit.WordWrap |
|
10 focus: true |
|
11 } |
|
12 //With QTBUG-6273 only the bottom one would be wrapped |
|
13 TextEdit { |
|
14 width: 200 |
|
15 height: 100 |
|
16 wrapMode: TextEdit.WordWrap |
|
17 text: "This is a test that text edit wraps correctly." |
|
18 y:100 |
|
19 } |
|
20 TextEdit { |
|
21 width: 150 |
|
22 height: 100 |
|
23 wrapMode: TextEdit.WrapAnywhere |
|
24 text: "This is a test that text edit wraps correctly. thisisaverylongstringwithnospaces" |
|
25 y:200 |
|
26 } |
|
27 TextEdit { |
|
28 width: 150 |
|
29 height: 100 |
|
30 wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere |
|
31 text: "This is a test that text edit wraps correctly. thisisaverylongstringwithnospaces" |
|
32 y:300 |
|
33 } |
|
34 } |