diff options
Diffstat (limited to 'tests/auto/quick/pointerhandlers/qquickhoverhandler/data/hoverMargin.qml')
-rw-r--r-- | tests/auto/quick/pointerhandlers/qquickhoverhandler/data/hoverMargin.qml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/auto/quick/pointerhandlers/qquickhoverhandler/data/hoverMargin.qml b/tests/auto/quick/pointerhandlers/qquickhoverhandler/data/hoverMargin.qml new file mode 100644 index 0000000000..908b200c36 --- /dev/null +++ b/tests/auto/quick/pointerhandlers/qquickhoverhandler/data/hoverMargin.qml @@ -0,0 +1,20 @@ +import QtQuick 2.15 +import QtQuick.Window 2.15 + +Item { + visible: true + width: 200 + height: 200 + + Rectangle { + anchors.centerIn: parent + width: 50 + height: 50 + color: hh.hovered ? "tomato" : "wheat" + HoverHandler { + id: hh + margin: 20 + cursorShape: Qt.OpenHandCursor + } + } +} |