Remove tst_qquicktextedit::alignments()
[profile/ivi/qtdeclarative.git] / tests / auto / quick / qquicktext / data / alignments.qml
1 import QtQuick 2.0
2
3 Rectangle {
4     id: top
5     width: 70; height: 70;
6
7     property alias horizontalAlignment: t.horizontalAlignment
8     property alias verticalAlignment: t.verticalAlignment
9     property alias wrapMode: t.wrapMode
10     property alias running: timer.running
11     property string txt: "Test"
12
13     Rectangle {
14         anchors.centerIn: parent
15         width: 40
16         height: 40
17         color: "green"
18
19         Text {
20             id: t
21
22             anchors.fill: parent
23             horizontalAlignment: Text.AlignRight
24             verticalAlignment: Text.AlignBottom
25             wrapMode: Text.WordWrap
26             text: top.txt
27         }
28         Timer {
29             id: timer
30
31             interval: 1
32             running: true
33             repeat: true
34             onTriggered: {
35                 top.txt = top.txt + "<br>more " + top.txt.length;
36                 if (top.txt.length > 50)
37                     running = false
38             }
39         }
40     }
41 }