diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-06-29 12:07:33 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-06-30 09:08:23 +0200 |
commit | b1493678fc295765ce93e565c5194e860e746436 (patch) | |
tree | 33b056e122f20ff2ea8b90be78194649558df9f5 /tests/auto/quick/pointerhandlers/qquickhoverhandler/data/hoverMargin.qml | |
parent | 71fb4c17a4d58fb558194431a30dd2a9cd9edba1 (diff) |
Change the cursor within HoverHandler.margin
The visual cursor feedback was inconsistent with the hovered property
when a margin is set.
Amends 1c44804600ad3dbeb60d1f5209ce9cf937d30ab3
Pick-to: 5.15
Fixes: QTBUG-85303
Task-number: QTBUG-68073
Change-Id: I25506baecaecbd6450a0e95786f103024b46b1b8
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
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 + } + } +} |