diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-11-24 02:14:37 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-11-24 02:14:37 (GMT) |
commit | 3d2b0d622908fe2c89ac1c2d5a5cb7ed96a24b6a (patch) | |
tree | 8f121718b91b2e2e38898222b534c7678211cec8 /examples | |
parent | b879188477238a26c57a97abbe1f87a6348a5b6a (diff) | |
download | Qt-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.qml | 20 |
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() + } +} |