aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/touch/mpta-crosshairs.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/touch/mpta-crosshairs.qml')
-rw-r--r--tests/manual/touch/mpta-crosshairs.qml13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/manual/touch/mpta-crosshairs.qml b/tests/manual/touch/mpta-crosshairs.qml
index 8b71e4fdc3..901b3e8bac 100644
--- a/tests/manual/touch/mpta-crosshairs.qml
+++ b/tests/manual/touch/mpta-crosshairs.qml
@@ -85,11 +85,22 @@ Rectangle {
}
Rectangle {
color: touchPoint.color
- width: 50 * touchPoint.pressure
+ width: Math.max(2, 50 * touchPoint.pressure)
height: width
radius: width / 2
x: touchPoint.x - width / 2
y: touchPoint.y - width / 2
+ Rectangle {
+ y: -40
+ anchors.horizontalCenter: parent.horizontalCenter
+ color: "#c0c0c0"
+ implicitWidth: label.implicitWidth
+ implicitHeight: label.implicitHeight
+ Text {
+ id: label
+ text: 'id: ' + touchPoint.pointId.toString(16) + '\npos: (' + touchPoint.x.toFixed(2) + ', ' + touchPoint.y.toFixed(2) + ')'
+ }
+ }
}
Rectangle {
id: velocityVector