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

Function findNamedView

kdevplatform/sublime/tests/test_areaoperation.cpp:42–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40namespace {
41
42View* findNamedView(const QList<View*>& views, const QString& name)
43{
44 const auto it = std::find_if(views.cbegin(), views.cend(), [&name](const View* view) {
45 return view->objectName() == name;
46 });
47 QCOMPARE_NE_RETURN(it, views.cend(), {});
48 return *it;
49}
50
51View* findNamedView(Area* area, const QString& name)
52{

Callers 5

compareAreas1and2Function · 0.85
sharedToolViewRemovalMethod · 0.85
toolDocumentRemovalMethod · 0.85

Calls 1

viewsMethod · 0.45

Tested by

no test coverage detected