MCPcopy Create free account
hub / github.com/KDE/kdevelop / itemForSuite

Method itemForSuite

plugins/testview/testview.cpp:212–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212QStandardItem* TestView::itemForSuite(ITestSuite* suite)
213{
214 const auto items = m_model->findItems(suite->name(), Qt::MatchRecursive);
215 auto it = std::find_if(items.begin(), items.end(), [&](QStandardItem* item) {
216 return (item->parent() && item->parent()->text() == suite->project()->name()
217 && !item->parent()->parent());
218 });
219 return (it != items.end()) ? *it : nullptr;
220}
221
222QStandardItem* TestView::itemForProject(IProject* project)
223{

Callers

nothing calls this directly

Calls 6

nameMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
parentMethod · 0.45
textMethod · 0.45
projectMethod · 0.45

Tested by

no test coverage detected