Example #1
0
    def treeWidgetChanged(self):
        """Called when this item is added or removed from a tree."""
        ParameterItem.treeWidgetChanged(self)

        ## add all widgets for this item into the tree
        if self.widget is not None:
            tree = self.treeWidget()
            if tree is None:
                return
            tree.setItemWidget(self, 1, self.layoutWidget)
            self.displayLabel.hide()
            self.selected(False)
Example #2
0
 def treeWidgetChanged(self):
     """Called when this item is added or removed from a tree."""
     ParameterItem.treeWidgetChanged(self)
     
     ## add all widgets for this item into the tree
     if self.widget is not None:
         tree = self.treeWidget()
         if tree is None:
             return
         tree.setItemWidget(self, 1, self.layoutWidget)
         self.displayLabel.hide()
         self.selected(False)            
Example #3
0
 def treeWidgetChanged(self):
     ParameterItem.treeWidgetChanged(self)
     if self.addItem is not None:
         self.treeWidget().setItemWidget(self.addItem, 0, self.addWidgetBox)
         self.treeWidget().setFirstItemColumnSpanned(self.addItem, True)
Example #4
0
 def treeWidgetChanged(self):
     ParameterItem.treeWidgetChanged(self)
     if self.addItem is not None:
         self.treeWidget().setItemWidget(self.addItem, 0, self.addWidgetBox)
         self.treeWidget().setFirstItemColumnSpanned(self.addItem, True)