mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Fix injection of parameters in signals
This commit is contained in:
parent
5f71518f9d
commit
c9b9a41bb8
2 changed files with 3 additions and 3 deletions
|
@ -249,13 +249,13 @@ Item
|
||||||
}
|
}
|
||||||
property var clickPos: Qt.point(0, 0)
|
property var clickPos: Qt.point(0, 0)
|
||||||
property bool dragging: false
|
property bool dragging: false
|
||||||
onPressed:
|
onPressed: (mouse) =>
|
||||||
{
|
{
|
||||||
clickPos = Qt.point(mouse.x, mouse.y);
|
clickPos = Qt.point(mouse.x, mouse.y);
|
||||||
dragging = true
|
dragging = true
|
||||||
}
|
}
|
||||||
|
|
||||||
onPositionChanged:
|
onPositionChanged: (mouse) =>
|
||||||
{
|
{
|
||||||
if(dragging)
|
if(dragging)
|
||||||
{
|
{
|
||||||
|
|
|
@ -171,7 +171,7 @@ Item
|
||||||
{
|
{
|
||||||
anchors.fill: contents
|
anchors.fill: contents
|
||||||
acceptedButtons: Qt.AllButtons
|
acceptedButtons: Qt.AllButtons
|
||||||
onWheel: wheel.accepted = true
|
onWheel: (wheel) => { wheel.accepted = true }
|
||||||
}
|
}
|
||||||
|
|
||||||
ListView
|
ListView
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue