summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlstates/data/ExtendedRectangle.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qmlstates/data/ExtendedRectangle.qml')
-rw-r--r--tests/auto/declarative/qmlstates/data/ExtendedRectangle.qml19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlstates/data/ExtendedRectangle.qml b/tests/auto/declarative/qmlstates/data/ExtendedRectangle.qml
new file mode 100644
index 0000000..8d64663
--- /dev/null
+++ b/tests/auto/declarative/qmlstates/data/ExtendedRectangle.qml
@@ -0,0 +1,19 @@
+import Qt 4.6
+Rectangle {
+ id: extendedRect
+ objectName: "extendedRect"
+ property color extendedColor: "orange"
+
+ width: 100; height: 100
+ color: "red"
+ states: State {
+ name: "green"
+ PropertyChanges {
+ target: rect
+ onDidSomething: {
+ extendedRect.color = "green"
+ extendedColor = "green"
+ }
+ }
+ }
+}