code cleanup
This commit is contained in:
parent
0df7cbcd06
commit
605b0b2144
@ -38,7 +38,6 @@ class WidgetParameterItem(ParameterItem):
|
|||||||
self.hideWidget = True ## hide edit widget, replace with label when not selected
|
self.hideWidget = True ## hide edit widget, replace with label when not selected
|
||||||
## set this to False to keep the editor widget always visible
|
## set this to False to keep the editor widget always visible
|
||||||
|
|
||||||
|
|
||||||
## build widget into column 1 with a display label and default button.
|
## build widget into column 1 with a display label and default button.
|
||||||
w = self.makeWidget()
|
w = self.makeWidget()
|
||||||
self.widget = w
|
self.widget = w
|
||||||
@ -162,8 +161,6 @@ class WidgetParameterItem(ParameterItem):
|
|||||||
self.focusNext(forward=False)
|
self.focusNext(forward=False)
|
||||||
return True ## don't let anyone else see this event
|
return True ## don't let anyone else see this event
|
||||||
|
|
||||||
#elif ev.type() == ev.FocusOut:
|
|
||||||
#self.hideEditor()
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def setFocus(self):
|
def setFocus(self):
|
||||||
@ -272,7 +269,6 @@ class WidgetParameterItem(ParameterItem):
|
|||||||
def optsChanged(self, param, opts):
|
def optsChanged(self, param, opts):
|
||||||
"""Called when any options are changed that are not
|
"""Called when any options are changed that are not
|
||||||
name, value, default, or limits"""
|
name, value, default, or limits"""
|
||||||
#print "opts changed:", opts
|
|
||||||
ParameterItem.optsChanged(self, param, opts)
|
ParameterItem.optsChanged(self, param, opts)
|
||||||
|
|
||||||
if 'readonly' in opts:
|
if 'readonly' in opts:
|
||||||
@ -385,7 +381,6 @@ class GroupParameterItem(ParameterItem):
|
|||||||
w.setLayout(l)
|
w.setLayout(l)
|
||||||
l.addWidget(self.addWidget)
|
l.addWidget(self.addWidget)
|
||||||
l.addStretch()
|
l.addStretch()
|
||||||
#l.addItem(QtGui.QSpacerItem(200, 10, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum))
|
|
||||||
self.addWidgetBox = w
|
self.addWidgetBox = w
|
||||||
self.addItem = QtGui.QTreeWidgetItem([])
|
self.addItem = QtGui.QTreeWidgetItem([])
|
||||||
self.addItem.setFlags(QtCore.Qt.ItemIsEnabled)
|
self.addItem.setFlags(QtCore.Qt.ItemIsEnabled)
|
||||||
|
Loading…
Reference in New Issue
Block a user