tests/auto/declarative/qmlvisual/qdeclarativetextedit/wrap.qml
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
child 33 3e2da88830cd
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
       
     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 }