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 {
|
||||
id: root
|
||||
|
||||
property int modelIndex: 0
|
||||
|
||||
caption: nodeName
|
||||
category: "EffectMaker"
|
||||
|
||||
@@ -21,7 +23,7 @@ HelperWidgets.Section {
|
||||
closeButtonToolTip: qsTr("Remove")
|
||||
|
||||
onCloseButtonClicked: {
|
||||
EffectMakerBackend.effectMakerModel.removeNode(root.index)
|
||||
EffectMakerBackend.effectMakerModel.removeNode(root.modelIndex)
|
||||
}
|
||||
|
||||
showEyeButton: true
|
||||
|
@@ -96,6 +96,7 @@ Item {
|
||||
|
||||
delegate: EffectCompositionNode {
|
||||
width: root.width
|
||||
modelIndex: index
|
||||
|
||||
Behavior on y {
|
||||
PropertyAnimation {
|
||||
|
Reference in New Issue
Block a user