mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-01 10:21:59 +02:00
Add "Copy" and "Paste" actions in the "Edit" menu
Also add a "Copy Node(s)" option in the nodes' right click menu.
This commit is contained in:
parent
e11452efdb
commit
ede24713d0
2 changed files with 51 additions and 7 deletions
|
@ -104,13 +104,6 @@ Item {
|
|||
uigraph.removeNodes(uigraph.selectedNodes)
|
||||
if (event.key === Qt.Key_D)
|
||||
duplicateNode(event.modifiers == Qt.AltModifier)
|
||||
|
||||
if (event.key === Qt.Key_C)
|
||||
if (event.modifiers == Qt.ControlModifier)
|
||||
copyNodes()
|
||||
if (event.key === Qt.Key_V)
|
||||
if (event.modifiers == Qt.ControlModifier)
|
||||
pasteNodes()
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
|
@ -407,6 +400,11 @@ Item {
|
|||
onTriggered: Qt.openUrlExternally(Filepath.stringToUrl(nodeMenu.currentNode.internalFolder))
|
||||
}
|
||||
MenuSeparator {}
|
||||
MenuItem {
|
||||
text: "Copy Node(s)"
|
||||
enabled: true
|
||||
onTriggered: copyNodes()
|
||||
}
|
||||
MenuItem {
|
||||
text: "Duplicate Node(s)" + (duplicateFollowingButton.hovered ? " From Here" : "")
|
||||
enabled: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue