diff options
Diffstat (limited to 'tests/auto/quick/pointerhandlers/qquickwheelhandler/data/rectWheel.qml')
-rw-r--r-- | tests/auto/quick/pointerhandlers/qquickwheelhandler/data/rectWheel.qml | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/auto/quick/pointerhandlers/qquickwheelhandler/data/rectWheel.qml b/tests/auto/quick/pointerhandlers/qquickwheelhandler/data/rectWheel.qml index c0c5e776e9..ca6053ebcf 100644 --- a/tests/auto/quick/pointerhandlers/qquickwheelhandler/data/rectWheel.qml +++ b/tests/auto/quick/pointerhandlers/qquickwheelhandler/data/rectWheel.qml @@ -1,5 +1,5 @@ // Copyright (C) 2019 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick 2.14 @@ -14,7 +14,23 @@ Rectangle { } } + Rectangle { + color: "red" + width: 6; height: 6; radius: 3 + x: wheelHandler.point.position.x - radius + y: wheelHandler.point.position.y - radius + } + + Text { + anchors.centerIn: parent + anchors.verticalCenterOffset: 20 + color: "white" + font.pixelSize: 18 + text: parent.x.toFixed(2) + ", " + parent.y.toFixed(2) + } + WheelHandler { + id: wheelHandler activeTimeout: 0.5 } } |