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

Method checkAllState

src/plugins/smartut/utils/utils.cpp:272–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272bool Utils::checkAllState(NodeItem *item, ItemState state)
273{
274 if (item->itemNode->asFileNode()) {
275 return item->state == state;
276 } else if (item->hasChildren()) {
277 for (int i = 0; i < item->rowCount(); ++i) {
278 if (!checkAllState(dynamic_cast<NodeItem *>(item->child(i)), state))
279 return false;
280 }
281 return true;
282 }
283 return false;
284}

Callers

nothing calls this directly

Calls 4

childMethod · 0.80
asFileNodeMethod · 0.45
hasChildrenMethod · 0.45
rowCountMethod · 0.45

Tested by

no test coverage detected