Fixed bugs with setting expanded and setExpanded
This commit is contained in:
parent
fab7b20094
commit
4e8a609375
@ -180,15 +180,9 @@ class ParameterItem(QtGui.QTreeWidgetItem):
|
||||
self.setHidden(not opts['visible'])
|
||||
|
||||
if 'expanded' in opts:
|
||||
if self.param.opts['syncExpanded']:
|
||||
if self.isExpanded() != opts['expanded']:
|
||||
self.setExpanded(opts['expanded'])
|
||||
|
||||
if 'syncExpanded' in opts:
|
||||
if opts['syncExpanded']:
|
||||
if self.isExpanded() != self.param.opts['expanded']:
|
||||
self.setExpanded(self.param.opts['expanded'])
|
||||
|
||||
if 'title' in opts:
|
||||
self.titleChanged()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user