From 412bedc70b32b09f4bb91a3a0503d46d19f2481a Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Wed, 16 May 2018 13:05:23 +0200 Subject: Add QQuickHandlerPoint::modifiers property MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The event includes it; this exposes it to QML, for the benefit of conditional JS logic in Pointer Handler use cases. Task-number: QTBUG-68101 Change-Id: I3f04c5db7f5aef461edb6168922b70e3fb3bda37 Reviewed-by: Jan Arve Sæther --- tests/manual/pointer/singlePointHandlerProperties.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/manual/pointer/singlePointHandlerProperties.qml b/tests/manual/pointer/singlePointHandlerProperties.qml index c11042cf14..1c044f8167 100644 --- a/tests/manual/pointer/singlePointHandlerProperties.qml +++ b/tests/manual/pointer/singlePointHandlerProperties.qml @@ -63,7 +63,7 @@ Rectangle { anchors.centerIn: parent antialiasing: true Rectangle { - y: -40 + y: -56 anchors.horizontalCenter: parent.horizontalCenter color: "lightsteelblue" implicitWidth: label.implicitWidth @@ -71,7 +71,8 @@ Rectangle { Text { id: label text: 'id: ' + dragHandler.point.id.toString(16) + " uid: " + dragHandler.point.uniqueId.numericId + - '\npos: (' + dragHandler.point.position.x.toFixed(2) + ', ' + dragHandler.point.position.y.toFixed(2) + ')' + '\npos: (' + dragHandler.point.position.x.toFixed(2) + ', ' + dragHandler.point.position.y.toFixed(2) + ')' + + '\nmodifiers: ' + dragHandler.point.modifiers.toString(16) } } } -- cgit v1.2.3