a1f40a71c71f2d09de8cfa8e63e7a3a9c2478fb3,Orange/widgets/classify/owtreeviewer2d.py,TextTreeNode,update_contents,#TextTreeNode#,120

Before Change


        return super().setHtml("<body>" + html + "</body>")
    
    def update_contents(self):
        if getattr(self, "_rect", QRectF()).isValid() and not self.truncate_text:
            self.setTextWidth(self._rect.width())
        else:
            self.setTextWidth(-1)
            self.setTextWidth(self.document().idealWidth())
        self.droplet.setPos(self.rect().center().x(), self.rect().height())
        self.droplet.setVisible(bool(self.branches))
        
    def set_rect(self, rect):

After Change


    
    def update_contents(self):
        self.setTextWidth(-1)
        self.setTextWidth(self.document().idealWidth())
        self.droplet.setPos(self.rect().center().x(), self.rect().height())
        self.droplet.setVisible(bool(self.branches))
        
    def set_rect(self, rect):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: biolab/orange3
Commit Name: a1f40a71c71f2d09de8cfa8e63e7a3a9c2478fb3
Time: 2014-12-05
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/classify/owtreeviewer2d.py
Class Name: TextTreeNode
Method Name: update_contents


Project Name: biolab/orange3
Commit Name: a1f40a71c71f2d09de8cfa8e63e7a3a9c2478fb3
Time: 2014-12-05
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/classify/owclassificationtreegraph.py
Class Name: ClassificationTreeNode
Method Name: update_contents


Project Name: biolab/orange3
Commit Name: a1f40a71c71f2d09de8cfa8e63e7a3a9c2478fb3
Time: 2014-12-05
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/classify/owtreeviewer2d.py
Class Name: TextTreeNode
Method Name: update_contents


Project Name: biolab/orange3
Commit Name: a1f40a71c71f2d09de8cfa8e63e7a3a9c2478fb3
Time: 2014-12-05
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/classify/owclassificationtreegraph.py
Class Name: ClassificationTreeNode
Method Name: set_rect