mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-28 17:57:16 +02:00
[GraphEditor] Fix injections into signal handlers with JS functions
This commit is contained in:
parent
faff99f963
commit
cb301b2aaa
3 changed files with 6 additions and 6 deletions
|
@ -103,7 +103,7 @@ RowLayout {
|
|||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
acceptedButtons: Qt.AllButtons
|
||||
onDoubleClicked: root.doubleClicked(mouse, root.attribute)
|
||||
onDoubleClicked: function(mouse) { root.doubleClicked(mouse, root.attribute) }
|
||||
|
||||
property Component menuComp: Menu {
|
||||
id: paramMenu
|
||||
|
|
|
@ -290,7 +290,7 @@ Panel {
|
|||
Layout.fillWidth: true
|
||||
model: root.node.attributes
|
||||
readOnly: root.readOnly || root.isCompatibilityNode
|
||||
onAttributeDoubleClicked: root.attributeDoubleClicked(mouse, attribute)
|
||||
onAttributeDoubleClicked: function(mouse, attribute) { root.attributeDoubleClicked(mouse, attribute) }
|
||||
onUpgradeRequest: root.upgradeRequest()
|
||||
filterText: searchBar.text
|
||||
}
|
||||
|
@ -357,7 +357,7 @@ Panel {
|
|||
Layout.fillWidth: true
|
||||
model: root.node.internalAttributes
|
||||
readOnly: root.readOnly || root.isCompatibilityNode
|
||||
onAttributeDoubleClicked: root.attributeDoubleClicked(mouse, attribute)
|
||||
onAttributeDoubleClicked: function(mouse, attribute) { root.attributeDoubleClicked(mouse, attribute) }
|
||||
onUpgradeRequest: root.upgradeRequest()
|
||||
filterText: searchBar.text
|
||||
}
|
||||
|
|
|
@ -118,7 +118,7 @@ Item {
|
|||
ToolTip.text: "Execute Script"
|
||||
|
||||
onClicked: {
|
||||
processScript()
|
||||
root.processScript()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -285,9 +285,9 @@ Item {
|
|||
root.forceActiveFocus()
|
||||
}
|
||||
|
||||
Keys.onPressed: {
|
||||
Keys.onPressed: function(event) {
|
||||
if ((event.key === Qt.Key_Enter || event.key === Qt.Key_Return) && event.modifiers === Qt.ControlModifier) {
|
||||
processScript()
|
||||
root.processScript()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue