summaryrefslogtreecommitdiffstats
path: root/examples/declarative/mouseregion
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-07-14 05:08:50 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-07-14 05:08:50 (GMT)
commit2b534d6cdc19e8ebdbdc1e55339d9dc711d49cfe (patch)
tree8bce4e55c7923edd209f7412f0f9d05f48d96ef9 /examples/declarative/mouseregion
parent7155f2fcf10f5a0fe49e0d08ff49eee933d8f261 (diff)
downloadQt-2b534d6cdc19e8ebdbdc1e55339d9dc711d49cfe.zip
Qt-2b534d6cdc19e8ebdbdc1e55339d9dc711d49cfe.tar.gz
Qt-2b534d6cdc19e8ebdbdc1e55339d9dc711d49cfe.tar.bz2
Fix containsMouse.
Diffstat (limited to 'examples/declarative/mouseregion')
-rw-r--r--examples/declarative/mouseregion/mouse.qml6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/declarative/mouseregion/mouse.qml b/examples/declarative/mouseregion/mouse.qml
index 471874d..5ef484c 100644
--- a/examples/declarative/mouseregion/mouse.qml
+++ b/examples/declarative/mouseregion/mouse.qml
@@ -11,8 +11,8 @@ Rect {
onClicked: { print('click (x: ' + mouse.x + ' y: ' + mouse.y + ' wasHeld: ' + mouse.wasHeld + ')') }
onDoubleClicked: { print('double click (x: ' + mouse.x + ' y: ' + mouse.y + ')') }
onPressAndHold: { print('press and hold') }
- onExitedWhilePressed: { print('exiting while pressed') }
- onReenteredWhilePressed: { print('reentering while pressed') }
+ onEntered: { print('entered ' + pressed) }
+ onExited: { print('exited ' + pressed) }
anchors.fill: parent
}
}
@@ -30,8 +30,6 @@ Rect {
onClicked: { print('click' + '(wasHeld: ' + mouse.wasHeld + ')') }
onDoubleClicked: { print('double click') }
onPressAndHold: { print('press and hold') }
- onExitedWhilePressed: { print('exiting while pressed') }
- onReenteredWhilePressed: { print('reentering while pressed') }
anchors.fill: parent
}
}