| 1687 | } |
| 1688 | |
| 1689 | QRectF |
| 1690 | NodeGui::boundingRectWithEdges() const |
| 1691 | { |
| 1692 | QRectF ret; |
| 1693 | QRectF bbox = boundingRect(); |
| 1694 | |
| 1695 | ret = mapToScene(bbox).boundingRect(); |
| 1696 | for (InputEdges::const_iterator it = _inputEdges.begin(); it != _inputEdges.end(); ++it) { |
| 1697 | if ( !(*it)->hasSource() ) { |
| 1698 | ret = ret.united( (*it)->mapToScene( (*it)->boundingRect() ).boundingRect() ); |
| 1699 | } |
| 1700 | } |
| 1701 | |
| 1702 | return ret; |
| 1703 | } |
| 1704 | |
| 1705 | bool |
| 1706 | NodeGui::isNearby(QPointF &point) |
no test coverage detected