| 40 | using namespace KTextEditor; |
| 41 | |
| 42 | void 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 | |
| 57 | void BrowseManager::eventuallyStartDelayedBrowsing() |
| 58 | { |
nothing calls this directly
no test coverage detected