forked from qt-creator/qt-creator
EffectMaker: Fix effect node deletion
Now the correct node is deleted. Fixes: QDS-11330 Change-Id: Id7402ea6b4f258d32e851de2118e53f26a6c632a Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
This commit is contained in:
@@ -12,6 +12,8 @@ import EffectMakerBackend
|
|||||||
HelperWidgets.Section {
|
HelperWidgets.Section {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
property int modelIndex: 0
|
||||||
|
|
||||||
caption: nodeName
|
caption: nodeName
|
||||||
category: "EffectMaker"
|
category: "EffectMaker"
|
||||||
|
|
||||||
@@ -21,7 +23,7 @@ HelperWidgets.Section {
|
|||||||
closeButtonToolTip: qsTr("Remove")
|
closeButtonToolTip: qsTr("Remove")
|
||||||
|
|
||||||
onCloseButtonClicked: {
|
onCloseButtonClicked: {
|
||||||
EffectMakerBackend.effectMakerModel.removeNode(root.index)
|
EffectMakerBackend.effectMakerModel.removeNode(root.modelIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
showEyeButton: true
|
showEyeButton: true
|
||||||
|
@@ -96,6 +96,7 @@ Item {
|
|||||||
|
|
||||||
delegate: EffectCompositionNode {
|
delegate: EffectCompositionNode {
|
||||||
width: root.width
|
width: root.width
|
||||||
|
modelIndex: index
|
||||||
|
|
||||||
Behavior on y {
|
Behavior on y {
|
||||||
PropertyAnimation {
|
PropertyAnimation {
|
||||||
|
Reference in New Issue
Block a user