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

Method fileAdded

kdevplatform/shell/watcheddocumentset.cpp:322–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322void ProjectSet::fileAdded(ProjectFileItem* file)
323{
324 Q_D(WatchedDocumentSet);
325
326 if (m_pauseAddingFiles) {
327 return;
328 }
329
330 const auto path = IndexedString(file->indexedPath());
331 if (include(path)) {
332 d->addDocument(path, DoUpdate | DoEmit);
333 }
334}
335
336void ProjectSet::fileRemoved(ProjectFileItem* file)
337{

Callers

nothing calls this directly

Calls 3

indexedPathMethod · 0.80
IndexedStringClass · 0.70
addDocumentMethod · 0.45

Tested by

no test coverage detected