From 3348c292783871411b700c26f6fe20e27a89123b Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Tue, 18 Mar 2025 14:12:34 +0100 Subject: [PATCH] Apply review suggestions CURA-12439 --- resources/qml/TableView.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/qml/TableView.qml b/resources/qml/TableView.qml index d41897996d..30087dcece 100644 --- a/resources/qml/TableView.qml +++ b/resources/qml/TableView.qml @@ -67,8 +67,8 @@ Item right: parent.right top: parent.top bottom: parent.bottom + rightMargin: -width / 2 } - anchors.rightMargin: -width / 2 width: UM.Theme.getSize("wide_lining").width * 2 enabled: index < headerRepeater.count - 1 acceptedButtons: Qt.LeftButton @@ -76,9 +76,9 @@ Item 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 delta = global_pos.x - dragLastPos.x