| 47 | |
| 48 | |
| 49 | void rectInclude(QRectF& rect, const QPointF& point) |
| 50 | { |
| 51 | if (point.x() < rect.left()) |
| 52 | rect.setLeft(point.x()); |
| 53 | else if (point.x() > rect.right()) |
| 54 | rect.setRight(point.x()); |
| 55 | |
| 56 | if (point.y() < rect.top()) |
| 57 | rect.setTop(point.y()); |
| 58 | else if (point.y() > rect.bottom()) |
| 59 | rect.setBottom(point.y()); |
| 60 | } |
| 61 | |
| 62 | void rectIncludeSafe(QRectF& rect, const QPointF& point) |
| 63 | { |
no test coverage detected