aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/pointer
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2018-05-16 13:05:23 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2018-05-18 15:12:39 +0000
commit412bedc70b32b09f4bb91a3a0503d46d19f2481a (patch)
treed9422efad1361f138c6d912dbff2edbdca0bc4e4 /tests/manual/pointer
parent52d35526f256bf4c8155f5e660a214ab8a2efbdf (diff)
Add QQuickHandlerPoint::modifiers property
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 <jan-arve.saether@qt.io>
Diffstat (limited to 'tests/manual/pointer')
-rw-r--r--tests/manual/pointer/singlePointHandlerProperties.qml5
1 files changed, 3 insertions, 2 deletions
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)
}
}
}