forked from qt-creator/qt-creator
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:
@@ -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
|
||||||
|
@@ -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();
|
||||||
|
Reference in New Issue
Block a user