| 61 | } |
| 62 | |
| 63 | void TreeItem::insertChild(int position, TreeItem *child, bool initial) |
| 64 | { |
| 65 | QModelIndex index = model_->indexForItem(this, 0); |
| 66 | |
| 67 | if (!initial) |
| 68 | model_->beginInsertRows(index, position, position); |
| 69 | childItems.insert(position, child); |
| 70 | if (!initial) |
| 71 | model_->endInsertRows(); |
| 72 | } |
| 73 | |
| 74 | void TreeItem::reportChange() |
| 75 | { |
no test coverage detected