Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

void Component::removeSwitch ( Switch sw  )  [inherited]

Safely remove a switch.

Definition at line 142 of file component.cpp.

References Component::m_switchList, and Component::switchDestroyed().

Referenced by ECRotoSwitch::setUpSwitches().

{
      if ( !sw )
            return;
      
      emit switchDestroyed( sw );
      delete sw;
      m_switchList.remove(sw);
      m_pCircuitDocument->requestAssignCircuits();
}


Generated by  Doxygen 1.6.0   Back to index