[ui] GraphEditor: Moved the click on edge to remove with the remove popup to be triggered with right click

This commit is contained in:
waaake 2025-01-12 19:23:09 +05:30 committed by Candice Bentéjac
parent b07540eaac
commit d0aeafb34e

View file

@ -502,7 +502,7 @@ Item {
if (event.button) {
if (canEdit && (event.modifiers & Qt.AltModifier)) {
uigraph.removeEdge(edge)
} else {
} else if (event.button == Qt.RightButton) {
edgeMenu.currentEdge = edge
edgeMenu.forLoop = forLoop
var spawnPosition = mouseArea.mapToItem(draggable, mouseArea.mouseX, mouseArea.mouseY)
@ -958,6 +958,7 @@ Item {
// Check for shake on the node
checkForShake();
// Compute offset between the delegate and the stored node position.
const offset = Qt.point(x - node.x, y - node.y);