Apply review suggestions

CURA-12439
This commit is contained in:
Erwan MATHIEU 2025-03-18 14:12:34 +01:00
parent 85eb90afbf
commit 3348c29278

View file

@ -67,8 +67,8 @@ Item
right: parent.right right: parent.right
top: parent.top top: parent.top
bottom: parent.bottom bottom: parent.bottom
rightMargin: -width / 2
} }
anchors.rightMargin: -width / 2
width: UM.Theme.getSize("wide_lining").width * 2 width: UM.Theme.getSize("wide_lining").width * 2
enabled: index < headerRepeater.count - 1 enabled: index < headerRepeater.count - 1
acceptedButtons: Qt.LeftButton acceptedButtons: Qt.LeftButton
@ -76,9 +76,9 @@ Item
property var dragLastPos property var dragLastPos
onPressed: (mouse) => { dragLastPos = mapToItem(parent, mouse.x, mouse.y) } onPressed: function(mouse) { dragLastPos = mapToItem(parent, mouse.x, mouse.y) }
onPositionChanged: (mouse) => onPositionChanged: function(mouse)
{ {
let global_pos = mapToItem(parent, mouse.x, mouse.y) let global_pos = mapToItem(parent, mouse.x, mouse.y)
let delta = global_pos.x - dragLastPos.x let delta = global_pos.x - dragLastPos.x