Skip to content

Commit

Permalink
Fix warnings about qsizetype used as int in qpainter.h
Browse files Browse the repository at this point in the history
Fixes: QTBUG-89273
Change-Id: Ibf3aff3bdb42fe5260cac528355f412c6ae0218f
Reviewed-by: Allan Sandfeld Jensen <[email protected]>
  • Loading branch information
aavit committed Jun 2, 2021
1 parent 2a8cc99 commit 7c0c095
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/gui/painting/qpainter.h
Original file line number Diff line number Diff line change
Expand Up @@ -502,52 +502,52 @@ inline void QPainter::drawLine(const QPointF &p1, const QPointF &p2)

inline void QPainter::drawLines(const QList<QLineF> &lines)
{
drawLines(lines.constData(), lines.size());
drawLines(lines.constData(), int(lines.size()));
}

inline void QPainter::drawLines(const QList<QLine> &lines)
{
drawLines(lines.constData(), lines.size());
drawLines(lines.constData(), int(lines.size()));
}

inline void QPainter::drawLines(const QList<QPointF> &pointPairs)
{
drawLines(pointPairs.constData(), pointPairs.size() / 2);
drawLines(pointPairs.constData(), int(pointPairs.size() / 2));
}

inline void QPainter::drawLines(const QList<QPoint> &pointPairs)
{
drawLines(pointPairs.constData(), pointPairs.size() / 2);
drawLines(pointPairs.constData(), int(pointPairs.size() / 2));
}

inline void QPainter::drawPolyline(const QPolygonF &polyline)
{
drawPolyline(polyline.constData(), polyline.size());
drawPolyline(polyline.constData(), int(polyline.size()));
}

inline void QPainter::drawPolyline(const QPolygon &polyline)
{
drawPolyline(polyline.constData(), polyline.size());
drawPolyline(polyline.constData(), int(polyline.size()));
}

inline void QPainter::drawPolygon(const QPolygonF &polygon, Qt::FillRule fillRule)
{
drawPolygon(polygon.constData(), polygon.size(), fillRule);
drawPolygon(polygon.constData(), int(polygon.size()), fillRule);
}

inline void QPainter::drawPolygon(const QPolygon &polygon, Qt::FillRule fillRule)
{
drawPolygon(polygon.constData(), polygon.size(), fillRule);
drawPolygon(polygon.constData(), int(polygon.size()), fillRule);
}

inline void QPainter::drawConvexPolygon(const QPolygonF &poly)
{
drawConvexPolygon(poly.constData(), poly.size());
drawConvexPolygon(poly.constData(), int(poly.size()));
}

inline void QPainter::drawConvexPolygon(const QPolygon &poly)
{
drawConvexPolygon(poly.constData(), poly.size());
drawConvexPolygon(poly.constData(), int(poly.size()));
}

inline void QPainter::drawRect(const QRectF &rect)
Expand All @@ -568,12 +568,12 @@ inline void QPainter::drawRect(const QRect &r)

inline void QPainter::drawRects(const QList<QRectF> &rects)
{
drawRects(rects.constData(), rects.size());
drawRects(rects.constData(), int(rects.size()));
}

inline void QPainter::drawRects(const QList<QRect> &rects)
{
drawRects(rects.constData(), rects.size());
drawRects(rects.constData(), int(rects.size()));
}

inline void QPainter::drawPoint(const QPointF &p)
Expand All @@ -594,12 +594,12 @@ inline void QPainter::drawPoint(const QPoint &p)

inline void QPainter::drawPoints(const QPolygonF &points)
{
drawPoints(points.constData(), points.size());
drawPoints(points.constData(), int(points.size()));
}

inline void QPainter::drawPoints(const QPolygon &points)
{
drawPoints(points.constData(), points.size());
drawPoints(points.constData(), int(points.size()));
}

inline void QPainter::drawRoundedRect(int x, int y, int w, int h, qreal xRadius, qreal yRadius,
Expand Down

0 comments on commit 7c0c095

Please sign in to comment.