mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Apply review suggestions
CURA-12439
This commit is contained in:
parent
85eb90afbf
commit
3348c29278
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue