Skip to content

Commit 36ba971

Browse files
author
Boris Basic
committed
Enable PyQt5 compatibility
1 parent 9131429 commit 36ba971

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

NodeGraphQt/widgets/scene.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ def _draw_grid(self, painter, rect, pen, grid_size):
3232
first_top = top - (top % grid_size)
3333

3434
lines = []
35-
lines.extend([QtCore.QLine(x, top, x, bottom) for x in range(first_left, right, grid_size)])
36-
lines.extend([QtCore.QLine(left, y, right, y) for y in range(first_top, bottom, grid_size)])
35+
lines.extend([QtCore.QLineF(x, top, x, bottom) for x in range(first_left, right, grid_size)])
36+
lines.extend([QtCore.QLineF(left, y, right, y) for y in range(first_top, bottom, grid_size)])
3737

3838
painter.setPen(pen)
3939
painter.drawLines(lines)

0 commit comments

Comments
 (0)