MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / RemoveChild

Method RemoveChild

App/Client/Favorite/FavoriteModel.cpp:582–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580}
581
582bool CFavoriteModel::tree::RemoveChild(tree *child)
583{
584 if (!child) return false;
585
586 int index = children.indexOf(child);
587 if (index == -1) return false;
588
589 children.remove(index);
590
591 // 更新剩余子节点的行号
592 for (int i = index; i < children.size(); ++i) {
593 children[i]->SetRow(i);
594 }
595
596 return true;
597}
598
599QList<CFavoriteModel::tree*> CFavoriteModel::tree::FindChild(const CFavoriteDatabase::Item &item) const
600{

Callers 2

removeRowsMethod · 0.45
foreachFunction · 0.45

Calls 1

SetRowMethod · 0.80

Tested by

no test coverage detected