Skip to content

Commit 0f82685

Browse files
committed
icon fix #454
1 parent 30cbefb commit 0f82685

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

NodeGraphQt/custom_widgets/properties_bin/node_property_widgets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def _build_row(self, tree, port):
258258

259259
focus_btn = QtWidgets.QPushButton()
260260
focus_btn.setIcon(QtGui.QIcon(
261-
tree.style().standardPixmap(QtWidgets.QStyle.SP_DialogYesButton)
261+
tree.style().standardIcon(QtWidgets.QStyle.SP_DialogYesButton)
262262
))
263263
focus_btn.clicked.connect(
264264
lambda: self._on_focus_to_node(self._ports.get(combo.currentText()))
@@ -316,7 +316,7 @@ def __init__(self, parent=None, node=None):
316316

317317
close_btn = QtWidgets.QPushButton()
318318
close_btn.setIcon(QtGui.QIcon(
319-
self.style().standardPixmap(
319+
self.style().standardIcon(
320320
QtWidgets.QStyle.SP_DialogCloseButton
321321
)
322322
))

0 commit comments

Comments
 (0)