diff options
Diffstat (limited to 'tests/manual/pointer/tapHandler.qml')
-rw-r--r-- | tests/manual/pointer/tapHandler.qml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/manual/pointer/tapHandler.qml b/tests/manual/pointer/tapHandler.qml index 6e51fc6fda..c25ea9eb4e 100644 --- a/tests/manual/pointer/tapHandler.qml +++ b/tests/manual/pointer/tapHandler.qml @@ -53,14 +53,15 @@ Item { borderBlink.blinkColor = "red" borderBlink.start() } - onTapped: { // 'eventPoint' is a signal parameter of type QEventPoint* - console.log("tapped button " + eventPoint.event.button + " @ " + eventPoint.scenePosition + - " on device '" + eventPoint.event.device.name + "' " + (tapCount > 1 ? (tapCount + " times") : "for the first time")) + onTapped: function(point, button) { + console.log("tapped button " + button + " @ " + point.scenePosition + + " on device '" + point.device.name + "' with modifiers " + handler.point.modifiers + + " " + (tapCount > 1 ? (tapCount + " times") : "for the first time")) if (tapCount > 1) { tapCountLabel.text = tapCount flashAnimation.start() } else { - borderBlink.tapFeedback(eventPoint.event.button) + borderBlink.tapFeedback(button) } } onLongPressed: longPressFeedback.createObject(rect, |