summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlvisual/qdeclarativetextedit/wrap.qml
blob: 4afe417e2fe0459d10e7239f5d3ff97cd5ef8daf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import QtQuick 1.0

Item {
    height:400
    width: 200
    TextEdit {
        width: 200
        height: 100
        wrapMode: TextEdit.WordWrap
        focus: true
    }
    //With QTBUG-6273 only the bottom one would be wrapped
    TextEdit {
        width: 200
        height: 100
        wrapMode: TextEdit.WordWrap
        text: "This is a test that text edit wraps correctly."
        y:100
    }
    TextEdit {
        width: 150
        height: 100
        wrapMode: TextEdit.WrapAnywhere
        text: "This is a test that text edit wraps correctly. thisisaverylongstringwithnospaces"
        y:200
    }
    TextEdit {
        width: 150
        height: 100
        wrapMode: TextEdit.Wrap
        text: "This is a test that text edit wraps correctly. thisisaverylongstringwithnospaces"
        y:300
    }
}