aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick1/qdeclarativeitem/data/mapCoordinates.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qtquick1/qdeclarativeitem/data/mapCoordinates.qml')
-rw-r--r--tests/auto/qtquick1/qdeclarativeitem/data/mapCoordinates.qml43
1 files changed, 0 insertions, 43 deletions
diff --git a/tests/auto/qtquick1/qdeclarativeitem/data/mapCoordinates.qml b/tests/auto/qtquick1/qdeclarativeitem/data/mapCoordinates.qml
deleted file mode 100644
index 48fb38da2b..0000000000
--- a/tests/auto/qtquick1/qdeclarativeitem/data/mapCoordinates.qml
+++ /dev/null
@@ -1,43 +0,0 @@
-import QtQuick 1.0
-
-Item {
- id: root; objectName: "root"
- width: 200; height: 200
-
- Item { id: itemA; objectName: "itemA"; x: 50; y: 50 }
-
- Item {
- x: 50; y: 50
- Item { id: itemB; objectName: "itemB"; x: 100; y: 100 }
- }
-
- function mapAToB(x, y) {
- var pos = itemA.mapToItem(itemB, x, y)
- return Qt.point(pos.x, pos.y)
- }
-
- function mapAFromB(x, y) {
- var pos = itemA.mapFromItem(itemB, x, y)
- return Qt.point(pos.x, pos.y)
- }
-
- function mapAToNull(x, y) {
- var pos = itemA.mapToItem(null, x, y)
- return Qt.point(pos.x, pos.y)
- }
-
- function mapAFromNull(x, y) {
- var pos = itemA.mapFromItem(null, x, y)
- return Qt.point(pos.x, pos.y)
- }
-
- function checkMapAToInvalid(x, y) {
- var pos = itemA.mapToItem(1122, x, y)
- return pos == undefined;
- }
-
- function checkMapAFromInvalid(x, y) {
- var pos = itemA.mapFromItem(1122, x, y)
- return pos == undefined;
- }
-}