| 819 | } |
| 820 | |
| 821 | void ModuleWidget::appendDisconnectActions(history::ComplexAction* complexAction) { |
| 822 | for (PortWidget* pw : getPorts()) { |
| 823 | for (CableWidget* cw : APP->scene->rack->getCompleteCablesOnPort(pw)) { |
| 824 | // history::CableRemove |
| 825 | history::CableRemove* h = new history::CableRemove; |
| 826 | h->setCable(cw); |
| 827 | complexAction->push(h); |
| 828 | // Delete cable |
| 829 | APP->scene->rack->removeCable(cw); |
| 830 | delete cw; |
| 831 | } |
| 832 | }; |
| 833 | } |
| 834 | |
| 835 | void ModuleWidget::disconnectAction() { |
| 836 | history::ComplexAction* complexAction = new history::ComplexAction; |
nothing calls this directly
no test coverage detected