| 623 | |
| 624 | |
| 625 | void PortWidget::onDragLeave(const DragLeaveEvent& e) { |
| 626 | destroyTooltip(); |
| 627 | |
| 628 | if (e.button != GLFW_MOUSE_BUTTON_LEFT) |
| 629 | return; |
| 630 | |
| 631 | PortWidget* pwOrigin = dynamic_cast<PortWidget*>(e.origin); |
| 632 | if (!pwOrigin) |
| 633 | return; |
| 634 | |
| 635 | for (CableWidget* cw : APP->scene->rack->getIncompleteCables()) { |
| 636 | cw->getHoveredPort(type) = NULL; |
| 637 | } |
| 638 | } |
| 639 | |
| 640 | |
| 641 | } // namespace app |
nothing calls this directly
no test coverage detected