From fab7b20094258cba265baa14081bdf64c0810e1d Mon Sep 17 00:00:00 2001 From: Daniel Lidstrom Date: Mon, 21 Dec 2020 17:18:34 -0800 Subject: [PATCH] ColorButton sizeHint override unnecessary --- pyqtgraph/parametertree/parameterTypes.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pyqtgraph/parametertree/parameterTypes.py b/pyqtgraph/parametertree/parameterTypes.py index 39cdf907..1062cc07 100644 --- a/pyqtgraph/parametertree/parameterTypes.py +++ b/pyqtgraph/parametertree/parameterTypes.py @@ -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