| 72 | } |
| 73 | |
| 74 | int Node::row() const |
| 75 | { |
| 76 | if (m_parent) |
| 77 | return m_parent->childs.indexOf(this); |
| 78 | // for (int i = 0, size = m_parent->childs.size(); i < size; ++i) |
| 79 | // if (m_parent->childs[i].get() == this) |
| 80 | // return i; |
| 81 | return -1; |
| 82 | } |
| 83 | |
| 84 | void Node::addChild(Node* item) |
| 85 | { |
no test coverage detected