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

Function foreach

App/Client/Favorite/FavoriteModel.cpp:136–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 int row = 0;
135 beginInsertRows(parent, 0, Nodes.size() - 1);
136 foreach(auto n, Nodes) {
137 tree* pTree = new tree();
138 pTree->parent = parentItem;
139 pTree->SetRow(row++);
140 pTree->item = n;
141 if(n.isFolder())
142 m_Folders[n.id] = pTree;
143 parentItem->children.append(pTree);
144 }
145 endInsertRows();
146}
147

Callers

nothing calls this directly

Calls 8

SetRowMethod · 0.80
FindChildMethod · 0.80
isValidMethod · 0.80
GetInserIndexMethod · 0.80
AddChildMethod · 0.80
isFolderMethod · 0.45
isEmptyMethod · 0.45
RemoveChildMethod · 0.45

Tested by

no test coverage detected