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

Method FindChild

App/Client/Favorite/FavoriteModel.cpp:599–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

597}
598
599QList<CFavoriteModel::tree*> CFavoriteModel::tree::FindChild(const CFavoriteDatabase::Item &item) const
600{
601 QList<tree*> lstChildren;
602 for (auto child : children) {
603 if (child->item.id == item.id && child->item.type == item.type) {
604 lstChildren << child;
605 }
606 }
607 return lstChildren;
608}
609
610QList<CFavoriteModel::tree*> CFavoriteModel::tree::FindRecursive(const CFavoriteDatabase::Item &item) const
611{

Callers 2

foreachFunction · 0.80
MoveTreeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected