Returns the index of this node in the parent's child list.
| 61 | |
| 62 | /// Returns the index of this node in the parent's child list. |
| 63 | int index() |
| 64 | { |
| 65 | if(!m_parent) |
| 66 | return -1; |
| 67 | |
| 68 | const QVector<ProblemStoreNode*> &children = m_parent->children(); |
| 69 | return children.indexOf(this); |
| 70 | } |
| 71 | |
| 72 | /// Returns the parent of this node |
| 73 | ProblemStoreNode* parent() const{ |
no test coverage detected