aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickitem2/data/mapCoordinates.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickitem2/data/mapCoordinates.qml')
-rw-r--r--tests/auto/quick/qquickitem2/data/mapCoordinates.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickitem2/data/mapCoordinates.qml b/tests/auto/quick/qquickitem2/data/mapCoordinates.qml
index 4874a51ebb..b410b445c5 100644
--- a/tests/auto/quick/qquickitem2/data/mapCoordinates.qml
+++ b/tests/auto/quick/qquickitem2/data/mapCoordinates.qml
@@ -59,6 +59,16 @@ Item {
return Qt.point(pos.x, pos.y)
}
+ function mapAToGlobal(x, y) {
+ var pos = itemA.mapToGlobal(x, y)
+ return Qt.point(pos.x, pos.y)
+ }
+
+ function mapAFromGlobal(x, y) {
+ var pos = itemA.mapFromGlobal(x, y)
+ return Qt.point(pos.x, pos.y)
+ }
+
function checkMapAToInvalid(x, y) {
try {
itemA.mapToItem(1122, x, y)