Changeset 6977:1492bf0d620b in orange


Ignore:
Timestamp:
09/17/10 13:03:08 (4 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
b867295090607c7ee158e5c480e53ab5c8013584
Message:
 
Location:
orange/OrangeWidgets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Classify/OWClassificationTreeGraph.py

    r6891 r6977  
    5353        else: 
    5454            self.setTextWidth(-1) 
    55              
     55            self.setTextWidth(self.document().idealWidth()) 
    5656        self.droplet.setPos(self.rect().center().x(), self.rect().height()) 
    5757        self.droplet.setVisible(bool(self.branches)) 
  • orange/OrangeWidgets/OWTreeViewer2D.py

    r6880 r6977  
    9494         
    9595    def setHtml(self, html): 
    96 #        if qVersion() < "4.5": 
    97         html = html.replace("<hr>", "<hr width=20000>") #bug in Qt (need width = 20000) 
     96        if qVersion() < "4.5": 
     97            html = html.replace("<hr>", "<hr width=200>") #bug in Qt4.4 (need width = 200) 
    9898        return QGraphicsTextItem.setHtml(self, "<body>" + html + "</body>")  
    9999     
     
    103103        else: 
    104104            self.setTextWidth(-1) 
     105            self.setTextWidth(self.document().idealWidth()) 
    105106        self.droplet.setPos(self.rect().center().x(), self.rect().height()) 
    106107        self.droplet.setVisible(bool(self.branches)) 
Note: See TracChangeset for help on using the changeset viewer.