| 53 | #endif |
| 54 | |
| 55 | QPolygon convertToQPolygon(const stats::Polygon &poly) |
| 56 | { |
| 57 | if (poly.empty()) |
| 58 | return QPolygon(); |
| 59 | |
| 60 | auto qPoly = QPolygon(int(poly.size())); |
| 61 | for (int i = 0; i < int(poly.size()); i++) |
| 62 | qPoly.setPoint(i, QPoint(poly[i].x, poly[i].y)); |
| 63 | return qPoly; |
| 64 | } |
| 65 | |
| 66 | QPoint getPolygonCenter(const QPolygon &polygon) |
| 67 | { |
no test coverage detected