From c93f96406ef177a08cf486fa77b11c0ef6df30ab Mon Sep 17 00:00:00 2001 From: Mahmoud Badri Date: Wed, 12 Jun 2024 17:25:45 +0300 Subject: [PATCH] QmlDesigner: Enable the + button for content lib effects and 3d items Change-Id: Ib4708deaaa2e98953f666c8bfcaddec85d553e9f Reviewed-by: Miikka Heikkinen --- .../contentLibraryQmlSource/ContentLibraryEffectsView.qml | 1 + .../contentLibraryQmlSource/ContentLibraryUserView.qml | 1 + 2 files changed, 2 insertions(+) diff --git a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryEffectsView.qml b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryEffectsView.qml index 199f784db18..612504d42fc 100644 --- a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryEffectsView.qml +++ b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryEffectsView.qml @@ -96,6 +96,7 @@ HelperWidgets.ScrollView { height: root.cellHeight onShowContextMenu: ctxMenu.popupMenu(modelData) + onAddToProject: ContentLibraryBackend.effectsModel.addInstance(modelData) } onCountChanged: root.assignMaxCount() diff --git a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryUserView.qml b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryUserView.qml index dd73c27c4b8..518409ba76e 100644 --- a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryUserView.qml +++ b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryUserView.qml @@ -130,6 +130,7 @@ HelperWidgets.ScrollView { height: root.cellHeight onShowContextMenu: ctxMenuItem.popupMenu(modelData) + onAddToProject: ContentLibraryBackend.userModel.addToProject(modelData) } } }