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

Method documentAdded

plugins/contextbrowser/browsemanager.cpp:42–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40using namespace KTextEditor;
41
42void BrowseManager::documentAdded(IDocument* document)
43{
44 KTextEditor::Document* textDocument = document->textDocument();
45 if (textDocument) {
46 connect(textDocument, &Document::viewCreated, this, [this](KTextEditor::Document*, KTextEditor::View* view) {
47 viewAdded(view);
48 });
49
50 const auto views = textDocument->views();
51 for (KTextEditor::View* view : views) {
52 viewAdded(view);
53 }
54 }
55}
56
57void BrowseManager::eventuallyStartDelayedBrowsing()
58{

Callers

nothing calls this directly

Calls 2

textDocumentMethod · 0.45
viewsMethod · 0.45

Tested by

no test coverage detected