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