| 593 | } |
| 594 | |
| 595 | void 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 | |
| 611 | void WorkingSet::disconnectArea( Sublime::Area* area ) |
| 612 | { |
no test coverage detected