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

Method itemModified

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

Source from the content-addressed store, hash-verified

576}
577
578void 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
588void ProjectTree::doDoubleClicked(const QModelIndex &index)
589{

Callers

nothing calls this directly

Calls 2

indexFromItemMethod · 0.80
rowCountMethod · 0.45

Tested by

no test coverage detected