| 576 | } |
| 577 | |
| 578 | void ProjectTree::itemModified(QStandardItem *item, const QList<QStandardItem *> &childs) |
| 579 | { |
| 580 | setUpdatesEnabled(false); |
| 581 | auto parentIndex = d->itemModel->indexFromItem(item); |
| 582 | int childCount = d->itemModel->rowCount(parentIndex); |
| 583 | d->itemModel->removeRows(0, childCount, parentIndex); |
| 584 | item->appendRows(childs); |
| 585 | setUpdatesEnabled(true); |
| 586 | } |
| 587 | |
| 588 | void ProjectTree::doDoubleClicked(const QModelIndex &index) |
| 589 | { |
nothing calls this directly
no test coverage detected