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

Method expandedProjectAll

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

Source from the content-addressed store, hash-verified

298}
299
300void ProjectTree::expandedProjectAll(const QStandardItem *root)
301{
302 if (!root)
303 return;
304
305 expand(d->itemModel->indexFromItem(root));
306 if (root->hasChildren()) {
307 for (int i = 0; i < root->rowCount(); i++) {
308 QStandardItem *childitem = root->child(i);
309 expandedProjectAll(childitem);
310 }
311 }
312}
313
314void ProjectTree::restoreExpandState(QStandardItem *item)
315{

Callers

nothing calls this directly

Calls 4

indexFromItemMethod · 0.80
childMethod · 0.80
hasChildrenMethod · 0.45
rowCountMethod · 0.45

Tested by

no test coverage detected