tests/auto/declarative/qmlvisual/qdeclarativetextedit/wrap.qml
author William Roberts <williamr@symbian.org>
Thu, 22 Jul 2010 16:41:55 +0100
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
child 33 3e2da88830cd
permissions -rw-r--r--
Catchup to latest Symbian^4

import Qt 4.7

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.WrapAtWordBoundaryOrAnywhere
        text: "This is a test that text edit wraps correctly. thisisaverylongstringwithnospaces"
        y:300
    }
}