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

Method FindRecursive

App/Client/Favorite/FavoriteModel.cpp:610–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

608}
609
610QList<CFavoriteModel::tree*> CFavoriteModel::tree::FindRecursive(const CFavoriteDatabase::Item &item) const
611{
612 QList<tree*> lstChildren;
613 if (item.id == this->item.id && item.type == this->item.type) {
614 lstChildren << const_cast<tree*>(this);
615 return lstChildren;
616 }
617 for (auto child : children) {
618 QList<tree*> found = child->FindRecursive(item);
619 if (!found.isEmpty()) {
620 lstChildren << found;
621 }
622 }
623 return lstChildren;
624}

Callers 1

MoveMethod · 0.80

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected