aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qquickaccessible/data/widgets/TextRect.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qtquick2/qquickaccessible/data/widgets/TextRect.qml')
-rw-r--r--tests/auto/qtquick2/qquickaccessible/data/widgets/TextRect.qml26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/auto/qtquick2/qquickaccessible/data/widgets/TextRect.qml b/tests/auto/qtquick2/qquickaccessible/data/widgets/TextRect.qml
new file mode 100644
index 0000000000..937686974b
--- /dev/null
+++ b/tests/auto/qtquick2/qquickaccessible/data/widgets/TextRect.qml
@@ -0,0 +1,26 @@
+import QtQuick 2.0
+
+Rectangle {
+ id: button
+
+ property alias text : buttonText.text
+ Accessible.name: text
+ Accessible.description: "This button does " + text
+ Accessible.role: Accessible.Client
+
+ signal clicked
+
+ width: 40
+ height: 40
+ border.width: 2
+ border.color: "black";
+
+ Text {
+ id: buttonText
+ text: "TextRect"
+ anchors.centerIn: parent
+ font.pixelSize: parent.height * .1
+ style: Text.Sunken; color: "white"; styleColor: "black"; smooth: true
+ }
+
+}