diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-04-27 07:39:47 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-04-27 07:39:47 (GMT) |
commit | d782ceee4de31bc4a11cd6cdeacc881bd1c118d8 (patch) | |
tree | 59622d424b34ca6d5195fb2ddcc4f4dc393abbd1 /examples/declarative/connections | |
parent | c33403a2e6a567a1e9bae9c0384a70dcae7d9961 (diff) | |
download | Qt-d782ceee4de31bc4a11cd6cdeacc881bd1c118d8.zip Qt-d782ceee4de31bc4a11cd6cdeacc881bd1c118d8.tar.gz Qt-d782ceee4de31bc4a11cd6cdeacc881bd1c118d8.tar.bz2 |
Make MouseRegion signals pass a mouse event as their parameter.
Diffstat (limited to 'examples/declarative/connections')
-rw-r--r-- | examples/declarative/connections/connections.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/declarative/connections/connections.qml b/examples/declarative/connections/connections.qml index 3146338..45c0e99 100644 --- a/examples/declarative/connections/connections.qml +++ b/examples/declarative/connections/connections.qml @@ -1,9 +1,9 @@ <Rect id="rect" color="blue" width="40" height="30"> <Rect id="dot" color="red" width="3" height="3" x="{rect.width/2}" y="{rect.height/2}"/> <MouseRegion id="mr" anchors.fill="{rect}"/> - <Connection sender="{mr}" signal="clicked(x,y)"> + <Connection sender="{mr}" signal="clicked(mouse)"> color="green"; - dot.x = x-1; - dot.y = y-1; + dot.x = mouse.x-1; + dot.y = mouse.y-1; </Connection> </Rect> |