summaryrefslogtreecommitdiffstats
path: root/examples/declarative/connections/connections.qml
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2009-10-08 05:08:40 (GMT)
committerBea Lam <bea.lam@nokia.com>2009-10-08 05:08:40 (GMT)
commitf149107f3281fd537c98aaac5cba5934d55aa78a (patch)
tree57bd2008434dbaeb857b29e4ec3f1c99c45139d3 /examples/declarative/connections/connections.qml
parente79cf93c8b724c8eac042e68ba8dee0b9f2feee3 (diff)
downloadQt-f149107f3281fd537c98aaac5cba5934d55aa78a.zip
Qt-f149107f3281fd537c98aaac5cba5934d55aa78a.tar.gz
Qt-f149107f3281fd537c98aaac5cba5934d55aa78a.tar.bz2
Clean up
Diffstat (limited to 'examples/declarative/connections/connections.qml')
-rw-r--r--examples/declarative/connections/connections.qml11
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/declarative/connections/connections.qml b/examples/declarative/connections/connections.qml
index 521cc01..b693b7e 100644
--- a/examples/declarative/connections/connections.qml
+++ b/examples/declarative/connections/connections.qml
@@ -5,6 +5,7 @@ Rectangle {
color: "blue"
width: 40
height: 30
+
Rectangle {
id: dot
color: "red"
@@ -13,19 +14,19 @@ Rectangle {
x: rect.width/2
y: rect.height/2
}
+
MouseRegion {
id: mr
anchors.fill: rect
}
+
Connection {
sender: mr
signal: "clicked(mouse)"
script: {
-
- color="green";
- dot.x = mouse.x-1;
- dot.y = mouse.y-1;
-
+ color = "green";
+ dot.x = mouse.x-1;
+ dot.y = mouse.y-1;
}
}
}