tests: Fix constraint region in pointerconstraints example
This commit is contained in:
parent
a1b47dfa08
commit
e01116149b
1 changed files with 2 additions and 2 deletions
|
@ -167,8 +167,8 @@ ColumnLayout {
|
|||
enabled: root.waylandNative && !fullWindowChck.checked
|
||||
|
||||
function rect() {
|
||||
var globalPt = mapToGlobal(x, y);
|
||||
return Qt.rect(globalPt.x, globalPt.y, width, height);
|
||||
const scenePosition = mapToItem(null, x, y);
|
||||
return Qt.rect(scenePosition.x, scenePosition.y, width, height);
|
||||
}
|
||||
|
||||
border.color: enabled ? "black" : "lightgrey"
|
||||
|
|
Loading…
Reference in a new issue