| 140 | } |
| 141 | |
| 142 | QList<int> DiffTreeModel::patchIndices(const QModelIndex &parent) const { |
| 143 | QList<int> list; |
| 144 | if (!mRoot) |
| 145 | return list; |
| 146 | |
| 147 | node(parent)->patchIndices(list); |
| 148 | return list; |
| 149 | } |
| 150 | |
| 151 | QModelIndex DiffTreeModel::parent(const QModelIndex &index) const { |
| 152 | Node *parent = node(index)->parent(); |