| 479 | } |
| 480 | |
| 481 | void VariableCollection::textDocumentCreated(IDocument* doc) |
| 482 | { |
| 483 | connect( doc->textDocument(), |
| 484 | &KTextEditor::Document::viewCreated, |
| 485 | this, &VariableCollection::viewCreated ); |
| 486 | |
| 487 | const auto views = doc->textDocument()->views(); |
| 488 | for (KTextEditor::View* view : views) { |
| 489 | viewCreated( doc->textDocument(), view ); |
| 490 | } |
| 491 | } |
| 492 | |
| 493 | void VariableCollection::viewCreated(KTextEditor::Document* doc, |
| 494 | KTextEditor::View* view) |
nothing calls this directly
no test coverage detected