MCPcopy Create free account
hub / github.com/KDE/kdevelop / performNodeCleanup

Method performNodeCleanup

kdevplatform/language/classmodel/classmodelnode.cpp:503–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501}
502
503void DynamicNode::performNodeCleanup()
504{
505 if (!m_populated)
506 return;
507
508 if (!m_children.empty()) {
509 // Notify model for this node.
510 m_model->nodesAboutToBeRemoved(this, 0, m_children.size() - 1);
511
512 // Clear sub-nodes.
513 clear();
514
515 m_model->nodesRemoved(this);
516 }
517
518 // This shouldn't be called from clear since clear is called also from the d-tor
519 // and the function is virtual.
520 nodeCleared();
521
522 // Mark the fact that we've been collapsed
523 m_populated = false;
524}
525
526void DynamicNode::performPopulateNode(bool a_forceRepopulate)
527{

Callers

nothing calls this directly

Calls 5

emptyMethod · 0.80
nodesAboutToBeRemovedMethod · 0.80
nodesRemovedMethod · 0.80
clearFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected