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

Method saveArea

kdevplatform/shell/uicontroller.cpp:626–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624}
625
626void UiController::saveArea(Sublime::Area * area, KConfigGroup & group)
627{
628 area->save(group);
629 auto workingSet = area->workingSet();
630 if (!workingSet.isEmpty()) {
631 WorkingSet* set = Core::self()->workingSetControllerInternal()->workingSet(workingSet);
632 set->saveFromArea(area);
633 }
634 for (auto w : mainWindows()) {
635 if (area == w->area()) {
636 Core::self()->activeSession()->config()->group(QStringLiteral("Working File Sets")).writeEntry("Active Working Set", workingSet);
637 }
638 }
639}
640
641void UiController::loadArea(Sublime::Area * area, const KConfigGroup & group)
642{

Callers

nothing calls this directly

Calls 9

saveFromAreaMethod · 0.80
writeEntryMethod · 0.80
saveMethod · 0.45
workingSetMethod · 0.45
isEmptyMethod · 0.45
areaMethod · 0.45
configMethod · 0.45
activeSessionMethod · 0.45

Tested by

no test coverage detected