diff options
Diffstat (limited to 'examples/quick/tutorials')
4 files changed, 5 insertions, 4 deletions
diff --git a/examples/quick/tutorials/dynamicview/dynamicview3/dynamicview.qml b/examples/quick/tutorials/dynamicview/dynamicview3/dynamicview.qml index 6c64ee2893..eb42a76a47 100644 --- a/examples/quick/tutorials/dynamicview/dynamicview3/dynamicview.qml +++ b/examples/quick/tutorials/dynamicview/dynamicview3/dynamicview.qml @@ -120,7 +120,7 @@ Rectangle { DropArea { anchors { fill: parent; margins: 10 } - onEntered: { + onEntered: (drag)=> { visualModel.items.move( drag.source.DelegateModel.itemsIndex, dragArea.DelegateModel.itemsIndex) diff --git a/examples/quick/tutorials/dynamicview/dynamicview4/dynamicview.qml b/examples/quick/tutorials/dynamicview/dynamicview4/dynamicview.qml index 327ca0cea7..f40f060e7c 100644 --- a/examples/quick/tutorials/dynamicview/dynamicview4/dynamicview.qml +++ b/examples/quick/tutorials/dynamicview/dynamicview4/dynamicview.qml @@ -121,7 +121,7 @@ Rectangle { DropArea { anchors { fill: parent; margins: 10 } - onEntered: { + onEntered: (drag)=> { visualModel.items.move( drag.source.DelegateModel.itemsIndex, dragArea.DelegateModel.itemsIndex) diff --git a/examples/quick/tutorials/samegame/samegame3/samegame.qml b/examples/quick/tutorials/samegame/samegame3/samegame.qml index a84cc67146..11376232a2 100644 --- a/examples/quick/tutorials/samegame/samegame3/samegame.qml +++ b/examples/quick/tutorials/samegame/samegame3/samegame.qml @@ -83,7 +83,7 @@ Rectangle { MouseArea { anchors.fill: parent - onClicked: SameGame.handleClick(mouse.x, mouse.y) + onClicked: (mouse)=> SameGame.handleClick(mouse.x, mouse.y) } } //![1] diff --git a/examples/quick/tutorials/samegame/samegame4/samegame.qml b/examples/quick/tutorials/samegame/samegame4/samegame.qml index 2bfdca9bd6..0cdbcd8cb0 100644 --- a/examples/quick/tutorials/samegame/samegame4/samegame.qml +++ b/examples/quick/tutorials/samegame/samegame4/samegame.qml @@ -80,7 +80,8 @@ Rectangle { height: parent.height - (parent.height % blockSize); MouseArea { - anchors.fill: parent; onClicked: SameGame.handleClick(mouse.x,mouse.y); + anchors.fill: parent + onClicked: (mouse)=> SameGame.handleClick(mouse.x,mouse.y); } } } |