summaryrefslogtreecommitdiffstats
path: root/examples/declarative/connections/connections.qml
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-10-09 04:29:10 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-10-09 04:29:10 (GMT)
commit9b7d77460c38ec93d98fa4779826b32bea2eaaff (patch)
treedf741aad025f325e0f15330887bcd82b0226b366 /examples/declarative/connections/connections.qml
parent04511e3dbbcdf40489852babbf4753e0f744c26f (diff)
parent3a0cb6ebef245780782fcab6709e471d26789590 (diff)
downloadQt-9b7d77460c38ec93d98fa4779826b32bea2eaaff.zip
Qt-9b7d77460c38ec93d98fa4779826b32bea2eaaff.tar.gz
Qt-9b7d77460c38ec93d98fa4779826b32bea2eaaff.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
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;
}
}
}