Closed StSav012 closed 1 year ago
I suggest adding a size keyword-only argument to the constructor of IconWidget to avoid extra setIconSize and update calls.
size
IconWidget
setIconSize
update
This way,
icon_widget: qta.IconWidget = qta.IconWidget('mdi.web', color='blue') icon_widget.setIconSize(QtCore.QSize(32, 32)) icon_widget.update()
turns into
icon_widget: qta.IconWidget = qta.IconWidget('mdi.web', color='blue', size=QtCore.QSize(32, 32))
And I fixed a couple of typos in the docstring of the class.
I suggest adding a
size
keyword-only argument to the constructor ofIconWidget
to avoid extrasetIconSize
andupdate
calls.This way,
turns into
And I fixed a couple of typos in the docstring of the class.