Fix injection of parameters in signals

This commit is contained in:
Jaime van Kessel 2022-04-01 17:17:28 +02:00
parent 5f71518f9d
commit c9b9a41bb8
2 changed files with 3 additions and 3 deletions

View file

@ -249,13 +249,13 @@ Item
}
property var clickPos: Qt.point(0, 0)
property bool dragging: false
onPressed:
onPressed: (mouse) =>
{
clickPos = Qt.point(mouse.x, mouse.y);
dragging = true
}
onPositionChanged:
onPositionChanged: (mouse) =>
{
if(dragging)
{

View file

@ -171,7 +171,7 @@ Item
{
anchors.fill: contents
acceptedButtons: Qt.AllButtons
onWheel: wheel.accepted = true
onWheel: (wheel) => { wheel.accepted = true }
}
ListView