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

Method connectArea

kdevplatform/shell/workingsets/workingset.cpp:595–609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593}
594
595void WorkingSet::connectArea( Sublime::Area* area )
596{
597 if ( m_areas.contains( area ) ) {
598 qCDebug(WORKINGSET) << "tried to double-connect area";
599 return;
600 }
601
602 qCDebug(WORKINGSET) << "connecting" << m_id << "to area" << area;
603
604// Q_ASSERT(area->workingSet() == m_id);
605
606 m_areas.push_back( area );
607 connect( area, &Sublime::Area::viewAdded, this, &WorkingSet::areaViewAdded );
608 connect( area, &Sublime::Area::viewRemoved, this, &WorkingSet::areaViewRemoved );
609}
610
611void WorkingSet::disconnectArea( Sublime::Area* area )
612{

Callers 4

areaCreatedMethod · 0.80
changedWorkingSetMethod · 0.80
viewAddedMethod · 0.80
clearWorkingSetMethod · 0.80

Calls 2

containsMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected