| 787 | } |
| 788 | |
| 789 | void ModuleWidget::appendDisconnectActions(history::ComplexAction* complexAction) { |
| 790 | for (PortWidget* pw : getPorts()) { |
| 791 | for (CableWidget* cw : APP->scene->rack->getCompleteCablesOnPort(pw)) { |
| 792 | // history::CableRemove |
| 793 | history::CableRemove* h = new history::CableRemove; |
| 794 | h->setCable(cw); |
| 795 | complexAction->push(h); |
| 796 | // Delete cable |
| 797 | APP->scene->rack->removeCable(cw); |
| 798 | delete cw; |
| 799 | } |
| 800 | }; |
| 801 | } |
| 802 | |
| 803 | void ModuleWidget::disconnectAction() { |
| 804 | history::ComplexAction* complexAction = new history::ComplexAction; |
no test coverage detected