ColorButton sizeHint override unnecessary
This commit is contained in:
parent
944b75ffcd
commit
fab7b20094
@ -156,8 +156,6 @@ class WidgetParameterItem(ParameterItem):
|
||||
w.sigChanging = w.textChanged
|
||||
elif t == 'color':
|
||||
w = ColorButton()
|
||||
h = w.sizeHint().height()
|
||||
w.sizeHint = lambda: QtCore.QSize(100, h)
|
||||
w.sigChanged = w.sigColorChanged
|
||||
w.sigChanging = w.sigColorChanging
|
||||
w.value = w.color
|
||||
|
Loading…
Reference in New Issue
Block a user