We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f82685 commit 24c4179Copy full SHA for 24c4179
NodeGraphQt/qgraphics/node_base.py
@@ -804,6 +804,11 @@ def icon(self, path=None):
804
NodeEnum.ICON_SIZE.value,
805
QtCore.Qt.SmoothTransformation
806
)
807
+ if pixmap.size().width() > NodeEnum.ICON_SIZE.value:
808
+ pixmap = pixmap.scaledToWidth(
809
+ NodeEnum.ICON_SIZE.value,
810
+ QtCore.Qt.SmoothTransformation
811
+ )
812
self._icon_item.setPixmap(pixmap)
813
if self.scene():
814
self.post_init()
0 commit comments