| 117 | } |
| 118 | |
| 119 | void ModuleWidget::addOutput(PortWidget* output) { |
| 120 | // Check that the port is an output |
| 121 | assert(output->type == engine::Port::OUTPUT); |
| 122 | // Check that the port doesn't have a duplicate ID |
| 123 | PortWidget* output2 = getOutput(output->portId); |
| 124 | assert(!output2); |
| 125 | // Add port |
| 126 | addChild(output); |
| 127 | } |
| 128 | |
| 129 | template <class T, typename F> |
| 130 | T* getFirstDescendantOfTypeWithCondition(widget::Widget* w, F f) { |
nothing calls this directly
no outgoing calls
no test coverage detected