| 18 | |
| 19 | |
| 20 | static |
| 21 | QPainterPath |
| 22 | cubicPath(ConnectionGeometry const& geom) |
| 23 | { |
| 24 | QPointF const& source = geom.source(); |
| 25 | QPointF const& sink = geom.sink(); |
| 26 | |
| 27 | auto c1c2 = geom.pointsC1C2(); |
| 28 | |
| 29 | // cubic spline |
| 30 | QPainterPath cubic(source); |
| 31 | |
| 32 | cubic.cubicTo(c1c2.first, c1c2.second, sink); |
| 33 | |
| 34 | return cubic; |
| 35 | } |
| 36 | |
| 37 | |
| 38 | QPainterPath |
no test coverage detected