summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/codingconventions/lists.qml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/snippets/declarative/codingconventions/lists.qml')
-rw-r--r--doc/src/snippets/declarative/codingconventions/lists.qml22
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/codingconventions/lists.qml b/doc/src/snippets/declarative/codingconventions/lists.qml
new file mode 100644
index 0000000..63e8100
--- /dev/null
+++ b/doc/src/snippets/declarative/codingconventions/lists.qml
@@ -0,0 +1,22 @@
+import Qt 4.7
+
+Item {
+ Item {
+//! [0]
+states: [
+ State {
+ name: "open"
+ PropertyChanges { target: container; width: 200 }
+ }
+]
+//! [0]
+ }
+ Item {
+//! [1]
+states: State {
+ name: "open"
+ PropertyChanges { target: container; width: 200 }
+}
+//! [1]
+ }
+}