forked from qt-creator/qt-creator
QmlDesigner.navigator: imports now update the NavigatorTreeView
This commit is contained in:
@@ -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*/)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user