QmlDesigner: Enable the + button for content lib effects and 3d items

Change-Id: Ib4708deaaa2e98953f666c8bfcaddec85d553e9f
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
Mahmoud Badri
2024-06-12 17:25:45 +03:00
parent cc942e85a1
commit c93f96406e
2 changed files with 2 additions and 0 deletions

View File

@@ -96,6 +96,7 @@ HelperWidgets.ScrollView {
height: root.cellHeight
onShowContextMenu: ctxMenu.popupMenu(modelData)
onAddToProject: ContentLibraryBackend.effectsModel.addInstance(modelData)
}
onCountChanged: root.assignMaxCount()

View File

@@ -130,6 +130,7 @@ HelperWidgets.ScrollView {
height: root.cellHeight
onShowContextMenu: ctxMenuItem.popupMenu(modelData)
onAddToProject: ContentLibraryBackend.userModel.addToProject(modelData)
}
}
}