Skip to content

Commit 847cc19

Browse files
authored
drawRoundRect to drawRoundedRect
Qt4 obsolete method
1 parent deaf3b1 commit 847cc19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

NodeGraphQt/custom_widgets/nodes_palette.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def paint(self, painter, option, index):
4747
pen.setCapStyle(QtCore.Qt.RoundCap)
4848
painter.setPen(pen)
4949
painter.setBrush(QtGui.QBrush(bg_color))
50-
painter.drawRoundRect(base_rect,
50+
painter.drawRoundedRect(base_rect,
5151
int(base_rect.height()/radius),
5252
int(base_rect.width()/radius))
5353

@@ -67,7 +67,7 @@ def paint(self, painter, option, index):
6767
base_rect.width() - (sub_margin * 2),
6868
base_rect.height() - (sub_margin * 2)
6969
)
70-
painter.drawRoundRect(sub_rect,
70+
painter.drawRoundedRect(sub_rect,
7171
int(sub_rect.height() / radius),
7272
int(sub_rect.width() / radius))
7373

0 commit comments

Comments
 (0)