mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 20:58:58 +08:00
Fix injection of parameters in signals
This commit is contained in:
parent
5f71518f9d
commit
c9b9a41bb8
@ -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)
|
||||
{
|
||||
|
@ -171,7 +171,7 @@ Item
|
||||
{
|
||||
anchors.fill: contents
|
||||
acceptedButtons: Qt.AllButtons
|
||||
onWheel: wheel.accepted = true
|
||||
onWheel: (wheel) => { wheel.accepted = true }
|
||||
}
|
||||
|
||||
ListView
|
||||
|
Loading…
x
Reference in New Issue
Block a user