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

Method setCurrentDocument

kdevplatform/shell/problemmodel.cpp:337–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337void ProblemModel::setCurrentDocument(IDocument* document)
338{
339 Q_D(ProblemModel);
340
341 Q_ASSERT(thread() == QThread::currentThread());
342
343 QUrl currentDocument = document->url();
344 /// Will trigger signals beginRebuild(), endRebuild() if problems change and are rebuilt
345 d->m_problems->setCurrentDocument(IndexedString(currentDocument));
346}
347
348void ProblemModel::closedDocument(IDocument* document)
349{

Callers 1

closedDocumentMethod · 0.45

Calls 3

threadFunction · 0.85
IndexedStringClass · 0.70
urlMethod · 0.45

Tested by

no test coverage detected