| 107 | } |
| 108 | |
| 109 | void ModuleWidget::addInput(PortWidget* input) { |
| 110 | // Check that the port is an input |
| 111 | assert(input->type == engine::Port::INPUT); |
| 112 | // Check that the port doesn't have a duplicate ID |
| 113 | PortWidget* input2 = getInput(input->portId); |
| 114 | assert(!input2); |
| 115 | // Add port |
| 116 | addChild(input); |
| 117 | } |
| 118 | |
| 119 | void ModuleWidget::addOutput(PortWidget* output) { |
| 120 | // Check that the port is an output |
nothing calls this directly
no outgoing calls
no test coverage detected