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

Method areaForView

kdevplatform/sublime/controller.cpp:303–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303Area* Controller::areaForView(View* view) const
304{
305 for (Area* area : allAreas()) {
306 if(area->views().contains(view))
307 return area;
308 }
309
310 return nullptr;
311}
312
313/*We need this to catch activation of views and tool views
314so that we can always tell what view and tool view is active.

Callers 1

closeViewMethod · 0.80

Calls 2

containsMethod · 0.45
viewsMethod · 0.45

Tested by

no test coverage detected