aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qsgtextinput/data/horizontalAlignment.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qsgtextinput/data/horizontalAlignment.qml')
-rw-r--r--tests/auto/declarative/qsgtextinput/data/horizontalAlignment.qml22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/auto/declarative/qsgtextinput/data/horizontalAlignment.qml b/tests/auto/declarative/qsgtextinput/data/horizontalAlignment.qml
new file mode 100644
index 0000000000..e0fef4c11e
--- /dev/null
+++ b/tests/auto/declarative/qsgtextinput/data/horizontalAlignment.qml
@@ -0,0 +1,22 @@
+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: 20
+ color: "green"
+
+ TextInput {
+ id: text
+ anchors.fill: parent
+ text: top.text
+ }
+ }
+}