MCPcopy Create free account
hub / github.com/KDE/kdevelop / operator()

Method operator()

kdevplatform/sublime/controller.cpp:35–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 Q_ASSERT(w);
34 }
35 Area::WalkerMode operator()(AreaIndex *index)
36 {
37 const auto& views = index->views();
38 const auto it = std::find_if(views.cbegin(), views.cend(), [this](const View* v) {
39 return v->widget() == w;
40 });
41 if (it == views.cend()) {
42 return Area::ContinueWalker;
43 }
44 view = *it;
45 return Area::StopWalker;
46 }
47
48 QWidget* const w;
49 View *view;

Callers

nothing calls this directly

Calls 2

viewsMethod · 0.45
widgetMethod · 0.45

Tested by

no test coverage detected