summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-11-24 02:14:37 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-11-24 02:14:37 (GMT)
commit3d2b0d622908fe2c89ac1c2d5a5cb7ed96a24b6a (patch)
tree8f121718b91b2e2e38898222b534c7678211cec8 /examples
parentb879188477238a26c57a97abbe1f87a6348a5b6a (diff)
downloadQt-3d2b0d622908fe2c89ac1c2d5a5cb7ed96a24b6a.zip
Qt-3d2b0d622908fe2c89ac1c2d5a5cb7ed96a24b6a.tar.gz
Qt-3d2b0d622908fe2c89ac1c2d5a5cb7ed96a24b6a.tar.bz2
missed file
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/tic-tac-toe/content/TicTac.qml20
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/declarative/tic-tac-toe/content/TicTac.qml b/examples/declarative/tic-tac-toe/content/TicTac.qml
new file mode 100644
index 0000000..eb80743
--- /dev/null
+++ b/examples/declarative/tic-tac-toe/content/TicTac.qml
@@ -0,0 +1,20 @@
+import Qt 4.6
+
+Item {
+ signal clicked
+
+ states: [
+ State { name: "X"; PropertyChanges { target: image; source: "pics/x.png" } },
+ State { name: "O"; PropertyChanges { target: image; source: "pics/o.png" } }
+ ]
+
+ Image {
+ id: image
+ anchors.centerIn: parent
+ }
+
+ MouseRegion {
+ anchors.fill: parent
+ onClicked: parent.clicked()
+ }
+}