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

Method OpenDocumentSet

kdevplatform/shell/watcheddocumentset.cpp:257–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257OpenDocumentSet::OpenDocumentSet(QObject* parent)
258 : WatchedDocumentSet(parent)
259{
260 Q_D(WatchedDocumentSet);
261
262 const auto documents = ICore::self()->documentController()->openDocuments();
263 for (IDocument* doc : documents) {
264 d->addDocument(IndexedString(doc->url()));
265 }
266 d->updateImports();
267
268 connect(ICore::self()->documentController(), &IDocumentController::documentClosed, this, &OpenDocumentSet::documentClosed);
269 connect(ICore::self()->documentController(), &IDocumentController::textDocumentCreated, this, &OpenDocumentSet::documentCreated);
270 connect(ICore::self()->documentController(), &IDocumentController::documentUrlChanged, this,
271 &OpenDocumentSet::documentUrlChanged);
272}
273
274void OpenDocumentSet::documentClosed(IDocument* doc)
275{

Callers

nothing calls this directly

Calls 6

openDocumentsMethod · 0.80
documentControllerMethod · 0.80
updateImportsMethod · 0.80
IndexedStringClass · 0.70
addDocumentMethod · 0.45
urlMethod · 0.45

Tested by

no test coverage detected