QmlDesigner: Refresh item library when exported types change

Task-number: QDS-15210
Change-Id: Ieea544cb001259de4abda3e71f73f981f0267ea2
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Miikka Heikkinen
2025-06-02 17:44:27 +03:00
parent 87e52c1998
commit f0ae578051
2 changed files with 7 additions and 0 deletions

View File

@@ -139,4 +139,9 @@ void ItemLibraryView::customNotification(const AbstractView *view,
AbstractView::customNotification(view, identifier, nodeList, data); AbstractView::customNotification(view, identifier, nodeList, data);
} }
void ItemLibraryView::exportedTypeNamesChanged(const ExportedTypeNames &, const ExportedTypeNames &)
{
m_widget->delayedUpdateModel();
}
} // namespace QmlDesigner } // namespace QmlDesigner

View File

@@ -32,6 +32,8 @@ public:
void documentMessagesChanged(const QList<DocumentMessage> &errors, const QList<DocumentMessage> &warnings) override; void documentMessagesChanged(const QList<DocumentMessage> &errors, const QList<DocumentMessage> &warnings) override;
void customNotification(const AbstractView *view, const QString &identifier, void customNotification(const AbstractView *view, const QString &identifier,
const QList<ModelNode> &nodeList, const QList<QVariant> &data) override; const QList<ModelNode> &nodeList, const QList<QVariant> &data) override;
void exportedTypeNamesChanged(const ExportedTypeNames &added,
const ExportedTypeNames &removed) override;
protected: protected:
void updateImports(); void updateImports();