void ComponentView::modelAttached(Model *model) { if (AbstractView::model() == model) return; AbstractView::modelAttached(model); Q_ASSERT(model->masterModel()); appendWholeDocumentAsComponent(); searchForComponentAndAddToList(rootModelNode()); }
void ComponentView::modelAttached(Model *model) { if (AbstractView::model() == model) return; bool block = m_componentAction->blockSignals(true); m_standardItemModel->clear(); AbstractView::modelAttached(model); searchForComponentAndAddToList(rootModelNode()); m_componentAction->blockSignals(block); }
void ComponentView::nodeCreated(const ModelNode &createdNode) { searchForComponentAndAddToList(createdNode); }
void ComponentView::nodeReparented(const ModelNode &node, const NodeAbstractProperty &/*newPropertyParent*/, const NodeAbstractProperty &/*oldPropertyParent*/, AbstractView::PropertyChangeFlags /*propertyChange*/) { searchForComponentAndAddToList(node); }