From a1c91787264f6f535b5cf094b57ee53058856df4 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Fri, 19 Jun 2020 12:44:59 +0200 Subject: Add QQuickHandlerPoint::device property MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The HandlerPoint type is used as the memory of an event or TouchPoint that a handler has already handled. Maybe in the future we'll store a copy of a QEventPoint instead. But for now, it's nice to have the device pointer available for binding properties, instead of only in QQuickEventPoint, which was only exposed in signals like TapHandler.tapped(). Change-Id: I314fc8c76311dc2620f1d97d4cadacf2e9869274 Reviewed-by: Jan Arve Sæther --- tests/manual/pointer/singlePointHandlerProperties.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/manual/pointer/singlePointHandlerProperties.qml') diff --git a/tests/manual/pointer/singlePointHandlerProperties.qml b/tests/manual/pointer/singlePointHandlerProperties.qml index d5c35fff22..c2500770f0 100644 --- a/tests/manual/pointer/singlePointHandlerProperties.qml +++ b/tests/manual/pointer/singlePointHandlerProperties.qml @@ -69,7 +69,8 @@ Rectangle { implicitHeight: label.implicitHeight Text { id: label - text: 'id: ' + pointHandler.point.id.toString(16) + " uid: " + pointHandler.point.uniqueId.numericId + + text: 'seat: ' + pointHandler.point.device.seatName + '\ndevice: ' + pointHandler.point.device.name + + '\nid: ' + pointHandler.point.id.toString(16) + " uid: " + pointHandler.point.uniqueId.numericId + '\npos: (' + pointHandler.point.position.x.toFixed(2) + ', ' + pointHandler.point.position.y.toFixed(2) + ')' + '\nmodifiers: ' + pointHandler.point.modifiers.toString(16) } -- cgit v1.2.3