summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlvisual/qdeclarativetext/font/plaintext2.qml
blob: 01de1f00464dd3ee32336f67a9b2ac3d3d29c618 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import QtQuick 1.0
import "../../shared" 1.0

Rectangle {
    width: 400; height: 200

    Row {
        spacing: 20
        anchors.centerIn: parent
        TestText {
            text: "First line\nSecond line"; wrapMode: Text.Wrap
        }
        TestText {
            text: "First line\nSecond line"; width: 70
        }
        TestText {
            text: "First Second\nThird Fourth"; wrapMode: Text.Wrap; width: 50
        }
        TestText {
            text: "First line<br>Second line"; textFormat: Text.StyledText
        }
    }
}