aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/pointer
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2021-07-02 21:27:54 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2021-07-05 15:09:50 +0200
commit0a271b5cd4da9e13accbf63a576413c45f367adc (patch)
tree1d9961c85e3be58305a77693832a18139be3fc79 /tests/manual/pointer
parentcd8e839e032f31a7421f33fd65dc3eaba4d84052 (diff)
Send hover events with correct scene and global positions
Task-number: QTBUG-94971 Pick-to: 6.1 6.2 Change-Id: I047223dfdb76a6f1237b9d15b54381cd085aa1ac Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/manual/pointer')
-rw-r--r--tests/manual/pointer/sidebar.qml12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/manual/pointer/sidebar.qml b/tests/manual/pointer/sidebar.qml
index b7370a4fb7..cd59f1d5cf 100644
--- a/tests/manual/pointer/sidebar.qml
+++ b/tests/manual/pointer/sidebar.qml
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2018 The Qt Company Ltd.
+** Copyright (C) 2021 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the manual tests of the Qt Toolkit.
@@ -187,4 +187,14 @@ Rectangle {
anchors.fill: parent
}
}
+
+ HoverHandler {
+ id: rootHover
+ }
+
+ Text {
+ anchors.right: parent.right
+ color: "cyan"
+ text: "scene " + rootHover.point.scenePosition.x.toFixed(1) + ", " + rootHover.point.scenePosition.y.toFixed(1)
+ }
}