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

Method setWorkingSet

kdevplatform/sublime/area.cpp:400–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400void Area::setWorkingSet(const QString &name, bool persistent, Area *oldArea)
401{
402 Q_D(Area);
403
404 oldArea = oldArea ? oldArea : this;
405 if (oldArea != this || name != d->workingSet) {
406 qCDebug(SUBLIME) << this << "setting new working-set" << name;
407 QString oldName = d->workingSet;
408 emit changingWorkingSet(this, oldArea, oldName, name);
409 d->workingSet = name;
410 d->workingSetPersists = persistent;
411 emit changedWorkingSet(this, oldArea, oldName, name);
412 } else if (name.isEmpty()) {
413 d->workingSetPersists = persistent;
414 }
415}
416
417bool Area::closeView(View* view, bool silent)
418{

Callers 2

closeReviewMethod · 0.45

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected