aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qquicktextedit/data/horizontalAlignment_RightToLeft.qml
blob: 2163838488c621ba06e92a77f3bba0b496e834f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import QtQuick 2.0

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

    property alias horizontalAlignment: text.horizontalAlignment
    property string text: "اختبا"

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

        TextEdit {
            id: text
            objectName: "text"
            anchors.fill: parent
            text: top.text
            focus: true
            textFormat: TextEdit.AutoText
        }
    }
}