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

Method visitItems

plugins/documentview/kdevdocumentview.cpp:130–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130template<typename F> void KDevDocumentView::visitItems(F f, bool selectedItems)
131{
132 KDevelop::IDocumentController* dc = m_plugin->core()->documentController();
133 const QList<QUrl> docs = selectedItems ? m_selectedDocs : m_unselectedDocs;
134
135 for (const QUrl& url : docs) {
136 KDevelop::IDocument* doc = dc->documentForUrl(url);
137 if (doc) f(doc);
138 }
139}
140
141namespace
142{

Callers

nothing calls this directly

Calls 4

documentControllerMethod · 0.80
documentForUrlMethod · 0.80
fFunction · 0.50
coreMethod · 0.45

Tested by

no test coverage detected