summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlvisual/qdeclarativetext/maximumLineCount/newLines_wrap_elide.qml
blob: ac7b5cbe2d1b3fc07053ff3a056ac05f3e12cdf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import QtQuick 1.0
import "../../shared" 1.0

Rectangle {
    width: childrenRect.width
    height: childrenRect.height

    TestText {
        width:  80
        maximumLineCount: 3
        wrapMode: Text.WordWrap
        elide: Text.ElideRight
        text: "Line1 has a more\nLine2\nLine3\nLine4"
    }
}