diff options
Diffstat (limited to 'tests/auto/quick/pointerhandlers/qquickdraghandler/data/draggables.qml')
-rw-r--r-- | tests/auto/quick/pointerhandlers/qquickdraghandler/data/draggables.qml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/auto/quick/pointerhandlers/qquickdraghandler/data/draggables.qml b/tests/auto/quick/pointerhandlers/qquickdraghandler/data/draggables.qml index e468280ea6..7b3601bea0 100644 --- a/tests/auto/quick/pointerhandlers/qquickdraghandler/data/draggables.qml +++ b/tests/auto/quick/pointerhandlers/qquickdraghandler/data/draggables.qml @@ -39,20 +39,21 @@ Item { Rectangle { id: ball - objectName: "Ball " + index + objectName: "Ball " + (index + 1) color: dragHandler.active ? "blue" : "lightsteelblue" width: 80; height: 80; x: 200 + index * 200; y: 200; radius: width / 2 onParentChanged: console.log(this + " parent " + parent) DragHandler { id: dragHandler - objectName: "DragHandler " + index + objectName: "DragHandler " + (index + 1) } Text { color: "white" anchors.centerIn: parent - text: dragHandler.point.position.x.toFixed(1) + "," + dragHandler.point.position.y.toFixed(1) + horizontalAlignment: Text.AlignHCenter + text: ball.objectName + "\n" + dragHandler.centroid.position.x.toFixed(1) + "," + dragHandler.centroid.position.y.toFixed(1) } } } |