| 501 | } |
| 502 | |
| 503 | void 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 | |
| 526 | void DynamicNode::performPopulateNode(bool a_forceRepopulate) |
| 527 | { |
nothing calls this directly
no test coverage detected