summaryrefslogtreecommitdiff
path: root/tests/auto/quick/qquickstates/data/basicExtension.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickstates/data/basicExtension.qml')
-rw-r--r--tests/auto/quick/qquickstates/data/basicExtension.qml16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickstates/data/basicExtension.qml b/tests/auto/quick/qquickstates/data/basicExtension.qml
new file mode 100644
index 0000000000..00f5fee287
--- /dev/null
+++ b/tests/auto/quick/qquickstates/data/basicExtension.qml
@@ -0,0 +1,16 @@
+import QtQuick 2.0
+Rectangle {
+ id: myRectangle
+ width: 100; height: 100
+ color: "red"
+ states: [
+ State {
+ name: "blue"
+ PropertyChanges { target: myRectangle; color: "blue" }
+ },
+ State {
+ name: "bordered"
+ extend: "blue"
+ PropertyChanges { target: myRectangle; border.width: 2 }
+ }]
+}