aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicktextinput/data/horizontalAlignment.qml
blob: 89934532e3c1994c06e7d9ad1526ad678f4b2159 (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 2.0

Rectangle {
    id: top
    width: 70; height: 70;

    property alias horizontalAlignment: text.horizontalAlignment
    property string text: "Test"

    Rectangle {
        anchors.centerIn: parent
        width: 60
        height: 60
        color: "green"

        TextInput {
            objectName: "text"
            id: text
            anchors.fill: parent
            text: top.text
        }
    }
}