summaryrefslogtreecommitdiffstats
path: root/examples/declarative/tutorials/helloworld/Cell.qml
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-10-07 08:26:35 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-10-07 08:26:35 (GMT)
commitfdec8807127844c55fcc0bb43ad0ab7db1d81a07 (patch)
treef1643e784ab2561bc8e74d3b6ab9ad60d9e59019 /examples/declarative/tutorials/helloworld/Cell.qml
parent8a54ed9524befc4a172cdc19a18d9953f3a01df0 (diff)
parent68573410fb50d95a6ce27cd001d2e140b0b4aedd (diff)
downloadQt-fdec8807127844c55fcc0bb43ad0ab7db1d81a07.zip
Qt-fdec8807127844c55fcc0bb43ad0ab7db1d81a07.tar.gz
Qt-fdec8807127844c55fcc0bb43ad0ab7db1d81a07.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Conflicts: doc/src/declarative/tutorial1.qdoc doc/src/declarative/tutorial2.qdoc doc/src/declarative/tutorial3.qdoc
Diffstat (limited to 'examples/declarative/tutorials/helloworld/Cell.qml')
-rw-r--r--examples/declarative/tutorials/helloworld/Cell.qml32
1 files changed, 32 insertions, 0 deletions
diff --git a/examples/declarative/tutorials/helloworld/Cell.qml b/examples/declarative/tutorials/helloworld/Cell.qml
new file mode 100644
index 0000000..ab6e565
--- /dev/null
+++ b/examples/declarative/tutorials/helloworld/Cell.qml
@@ -0,0 +1,32 @@
+//![0]
+import Qt 4.6
+
+//![1]
+Item {
+ id: container
+//![4]
+ property alias color: rectangle.color
+//![4]
+//![5]
+ signal clicked(string color)
+//![5]
+
+ width: 40; height: 25
+//![1]
+
+//![2]
+ Rectangle {
+ id: rectangle
+ border.color: "white"
+ anchors.fill: parent
+ }
+//![2]
+
+//![3]
+ MouseRegion {
+ anchors.fill: parent
+ onClicked: container.clicked(container.color)
+ }
+//![3]
+}
+//![0]