diff --git a/src/plugins/qmldesigner/components/navigator/navigatorview.cpp b/src/plugins/qmldesigner/components/navigator/navigatorview.cpp index 9e1ae2d6db4f0b2ea72917a7873a1b0e17e5b2d9..6bf172d8975de79e5b5d0c9d3260d688fc5f90dc 100644 --- a/src/plugins/qmldesigner/components/navigator/navigatorview.cpp +++ b/src/plugins/qmldesigner/components/navigator/navigatorview.cpp @@ -104,6 +104,17 @@ void NavigatorView::modelAboutToBeDetached(Model *model) AbstractView::modelAboutToBeDetached(model); } +void NavigatorView::importAdded(const Import &) +{ + treeWidget()->update(); +} + +void NavigatorView::importRemoved(const Import &) +{ + treeWidget()->update(); +} + + void NavigatorView::nodeCreated(const ModelNode & /*createdNode*/) { } diff --git a/src/plugins/qmldesigner/components/navigator/navigatorview.h b/src/plugins/qmldesigner/components/navigator/navigatorview.h index 30994c52e2cd3d1ccf0ff86142addba40c8c4f48..58e428f82c6172961175ef06a726829aed2d19aa 100644 --- a/src/plugins/qmldesigner/components/navigator/navigatorview.h +++ b/src/plugins/qmldesigner/components/navigator/navigatorview.h @@ -62,6 +62,9 @@ public: void modelAttached(Model *model); void modelAboutToBeDetached(Model *model); + void importAdded(const Import &import); + void importRemoved(const Import &import); + void nodeCreated(const ModelNode &createdNode); void nodeRemoved(const ModelNode &removedNode, const NodeAbstractProperty &parentProperty, PropertyChangeFlags propertyChange); void propertiesRemoved(const QList<AbstractProperty> &propertyList);