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:
Miikka Heikkinen
2023-11-20 17:38:25 +02:00
parent 96ddb5da8b
commit 10792b1eb3
2 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -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 {