| 71 | |
| 72 | |
| 73 | QRectF |
| 74 | ConnectionGeometry:: |
| 75 | boundingRect() const |
| 76 | { |
| 77 | auto points = pointsC1C2(); |
| 78 | |
| 79 | QRectF basicRect = QRectF(_out, _in).normalized(); |
| 80 | |
| 81 | QRectF c1c2Rect = QRectF(points.first, points.second).normalized(); |
| 82 | |
| 83 | auto const &connectionStyle = |
| 84 | StyleCollection::connectionStyle(); |
| 85 | |
| 86 | float const diam = connectionStyle.pointDiameter(); |
| 87 | |
| 88 | QRectF commonRect = basicRect.united(c1c2Rect); |
| 89 | |
| 90 | QPointF const cornerOffset(diam, diam); |
| 91 | |
| 92 | commonRect.setTopLeft(commonRect.topLeft() - cornerOffset); |
| 93 | commonRect.setBottomRight(commonRect.bottomRight() + 2 * cornerOffset); |
| 94 | |
| 95 | return commonRect; |
| 96 | } |
| 97 | |
| 98 | |
| 99 | std::pair<QPointF, QPointF> |
nothing calls this directly
no outgoing calls
no test coverage detected