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

Method changedWorkingSet

kdevplatform/shell/workingsets/closedworkingsetswidget.cpp:76–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void ClosedWorkingSetsWidget::changedWorkingSet(Sublime::Area *area, Sublime::Area*, const QString &from, const QString &to)
77{
78 Q_ASSERT(area == m_connectedArea);
79 Q_UNUSED(area);
80
81 if (!from.isEmpty()) {
82 WorkingSet* oldSet = workingSet(from);
83 addWorkingSet(oldSet);
84 }
85
86 if (!to.isEmpty()) {
87 WorkingSet* newSet = workingSet(to);
88 removeWorkingSet(newSet);
89 }
90}
91
92void ClosedWorkingSetsWidget::removeWorkingSet( WorkingSet* set )
93{

Callers

nothing calls this directly

Calls 2

workingSetFunction · 0.85
isEmptyMethod · 0.45

Tested by

no test coverage detected