MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / takeRootItem

Method takeRootItem

src/plugins/project/mainframe/projecttree.cpp:213–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213void 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
224void ProjectTree::doItemMenuRequest(QStandardItem *item, QContextMenuEvent *event)
225{

Callers 1

removeRootItemMethod · 0.95

Calls 4

indexFromItemMethod · 0.80
rowMethod · 0.80
hideSpinnerMethod · 0.80
rowCountMethod · 0.45

Tested by

no test coverage detected