mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 18:27:23 +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 (event.button) {
|
||||||
if (canEdit && (event.modifiers & Qt.AltModifier)) {
|
if (canEdit && (event.modifiers & Qt.AltModifier)) {
|
||||||
uigraph.removeEdge(edge)
|
uigraph.removeEdge(edge)
|
||||||
} else {
|
} else if (event.button == Qt.RightButton) {
|
||||||
edgeMenu.currentEdge = edge
|
edgeMenu.currentEdge = edge
|
||||||
edgeMenu.forLoop = forLoop
|
edgeMenu.forLoop = forLoop
|
||||||
var spawnPosition = mouseArea.mapToItem(draggable, mouseArea.mouseX, mouseArea.mouseY)
|
var spawnPosition = mouseArea.mapToItem(draggable, mouseArea.mouseX, mouseArea.mouseY)
|
||||||
|
@ -958,6 +958,7 @@ Item {
|
||||||
|
|
||||||
// Check for shake on the node
|
// Check for shake on the node
|
||||||
checkForShake();
|
checkForShake();
|
||||||
|
|
||||||
// Compute offset between the delegate and the stored node position.
|
// Compute offset between the delegate and the stored node position.
|
||||||
const offset = Qt.point(x - node.x, y - node.y);
|
const offset = Qt.point(x - node.x, y - node.y);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue