| 211 | } |
| 212 | |
| 213 | void ProjectTree::takeRootItem(QStandardItem *root) |
| 214 | { |
| 215 | // 从展示的模型中删除 |
| 216 | QModelIndex index = d->itemModel->indexFromItem(root); |
| 217 | d->itemModel->takeRow(index.row()); |
| 218 | emit itemDeleted(root); |
| 219 | |
| 220 | if (d->itemModel->rowCount() == 0) |
| 221 | d->delegate->hideSpinner(); |
| 222 | } |
| 223 | |
| 224 | void ProjectTree::doItemMenuRequest(QStandardItem *item, QContextMenuEvent *event) |
| 225 | { |
no test coverage detected