| 396 | } |
| 397 | |
| 398 | Node::~Node() |
| 399 | { |
| 400 | // Notify the model about the removal of this nodes' children. |
| 401 | if (!m_children.empty() && m_model) { |
| 402 | m_model->nodesAboutToBeRemoved(this, 0, m_children.size() - 1); |
| 403 | clear(); |
| 404 | m_model->nodesRemoved(this); |
| 405 | } |
| 406 | } |
| 407 | |
| 408 | void Node::clear() |
| 409 | { |
nothing calls this directly
no test coverage detected