mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-28 17:57:16 +02:00
[ui] GraphEditor: Moved the click on edge to remove with the remove popup to be triggered with right click
This commit is contained in:
parent
b07540eaac
commit
d0aeafb34e
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue