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

Method changingWorkingSet

kdevplatform/shell/workingsets/workingsetwidget.cpp:51–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void WorkingSetWidget::changingWorkingSet(Sublime::Area* area, Sublime::Area* /*oldArea*/, const QString& /*from*/, const QString& newSet)
52{
53 qCDebug(WORKINGSET) << "re-creating widget" << m_area;
54
55 Q_ASSERT(area == m_area);
56 Q_UNUSED(area);
57
58 if (workingSet()) {
59 disconnect(workingSet(), &WorkingSet::setChangedSignificantly,
60 this, &WorkingSetWidget::setChangedSignificantly);
61 }
62
63 WorkingSet* set = getSet(newSet);
64 setWorkingSet(set);
65
66 if (set) {
67 connect(set, &WorkingSet::setChangedSignificantly,
68 this, &WorkingSetWidget::setChangedSignificantly);
69 }
70 setVisible(set && !set->isEmpty());
71}
72
73void WorkingSetWidget::setChangedSignificantly()
74{

Callers

nothing calls this directly

Calls 3

workingSetFunction · 0.85
getSetFunction · 0.85
isEmptyMethod · 0.45

Tested by

no test coverage detected