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

Method clearWorkingSet

kdevplatform/shell/workingsetcontroller.cpp:316–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316void WorkingSetController::clearWorkingSet(Sublime::Area * area)
317{
318 const QString workingSetId = area->workingSet();
319 if (workingSetId.isEmpty()) {
320 // Nothing to do - area has no working set
321 return;
322 }
323
324 WorkingSet* set = workingSet(workingSetId);
325 set->deleteSet(true);
326
327 WorkingSet* newSet = workingSet(workingSetId);
328 newSet->connectArea(area);
329 newSet->loadToArea(area);
330 Q_ASSERT(newSet->fileList().isEmpty());
331}
332
333#include "moc_workingsetcontroller.cpp"

Callers

nothing calls this directly

Calls 7

workingSetFunction · 0.85
deleteSetMethod · 0.80
connectAreaMethod · 0.80
loadToAreaMethod · 0.80
workingSetMethod · 0.45
isEmptyMethod · 0.45
fileListMethod · 0.45

Tested by

no test coverage detected