Skip to content

Commit

Permalink
Fix test on older Qt
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 31, 2024
1 parent bc4fe95 commit 8e26f40
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions tests/src/python/test_qgsgeometrypaintdevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ def test_points(self):
painter = SafePainter(device)

painter.drawPoints(
[QPointF(5.5, 10.7),
QPointF(6.8, 12.9)]
QPolygonF([QPointF(5.5, 10.7),
QPointF(6.8, 12.9)])
)
painter.drawPoint(
QPointF(15.5, 12.7)
Expand Down Expand Up @@ -215,8 +215,8 @@ def test_points(self):
)

painter.drawPoints(
[QPointF(5.5, 10.7),
QPointF(6.8, 12.9)]
QPolygonF([QPointF(5.5, 10.7),
QPointF(6.8, 12.9)])
)
painter.drawPoint(
QPointF(15.5, 12.7)
Expand Down Expand Up @@ -302,10 +302,10 @@ def test_polygons(self):
painter = SafePainter(device)

painter.drawPolygon(
[QPointF(5.5, 10.7), QPointF(6.8, 12.9),
QPointF(15.5, 12.7), QPointF(5.5, 10.7)])
QPolygonF([QPointF(5.5, 10.7), QPointF(6.8, 12.9),
QPointF(15.5, 12.7), QPointF(5.5, 10.7)]))
painter.drawPolyline(
[QPointF(-4, -1), QPointF(2, 3)]
QPolygonF([QPointF(-4, -1), QPointF(2, 3)])
)
painter.drawPolyline(
QPolygon([QPoint(14, 11), QPoint(22, 35)])
Expand All @@ -332,10 +332,10 @@ def test_polygons(self):
)

painter.drawPolygon(
[QPointF(5.5, 10.7), QPointF(6.8, 12.9),
QPointF(15.5, 12.7), QPointF(5.5, 10.7)])
QPolygonF([QPointF(5.5, 10.7), QPointF(6.8, 12.9),
QPointF(15.5, 12.7), QPointF(5.5, 10.7)]))
painter.drawPolyline(
[QPointF(-4, -1), QPointF(2, 3)]
QPolygonF([QPointF(-4, -1), QPointF(2, 3)])
)
painter.drawPolyline(
QPolygon([QPoint(14, 11), QPoint(22, 35)])
Expand Down Expand Up @@ -365,10 +365,10 @@ def test_stroked_polygons(self):
painter.setPen(pen)

painter.drawPolygon(
[QPointF(5.5, 10.7), QPointF(6.8, 12.9),
QPointF(15.5, 12.7), QPointF(5.5, 10.7)])
QPolygonF([QPointF(5.5, 10.7), QPointF(6.8, 12.9),
QPointF(15.5, 12.7), QPointF(5.5, 10.7)]))
painter.drawPolyline(
[QPointF(-4, -1), QPointF(2, 3)]
QPolygonF([QPointF(-4, -1), QPointF(2, 3)])
)
painter.drawPolyline(
QPolygon([QPoint(14, 11), QPoint(22, 35)])
Expand Down Expand Up @@ -396,10 +396,10 @@ def test_stroked_polygons(self):
painter.setPen(pen)

painter.drawPolygon(
[QPointF(5.5, 10.7), QPointF(6.8, 12.9),
QPointF(15.5, 12.7), QPointF(5.5, 10.7)])
QPolygonF([QPointF(5.5, 10.7), QPointF(6.8, 12.9),
QPointF(15.5, 12.7), QPointF(5.5, 10.7)]))
painter.drawPolyline(
[QPointF(-4, -1), QPointF(2, 3)]
QPolygonF([QPointF(-4, -1), QPointF(2, 3)])
)
painter.drawPolyline(
QPolygon([QPoint(14, 11), QPoint(22, 35)])
Expand Down

0 comments on commit 8e26f40

Please sign in to comment.