Changeset 8007:f09196f24620 in orange


Ignore:
Timestamp:
06/13/11 23:12:02 (3 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
4b1d32ba4e524d93dd0889aaec956c4e568b958c
Message:

Enabled antialiasing and made the symbols in the legend smaller

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Visualize/OWMosaicDisplay.py

    r7039 r8007  
    147147        self.canvasView.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff) 
    148148        self.canvasView.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff) 
    149         #self.canvasView.setRenderHint(QPainter.Antialiasing) 
     149        self.canvasView.setRenderHint(QPainter.Antialiasing) 
    150150        #self.canvasView.setAlignment(Qt.AlignLeft | Qt.AlignTop) 
    151151 
     
    777777        xOffset = self.names[-1].boundingRect().width() + distance 
    778778 
    779         size = 16 # 8 + 8*(self.interiorColoring == PEARSON) 
     779        size = 8 # 8 + 8*(self.interiorColoring == PEARSON) 
    780780 
    781781        for i in range(len(names)-1): 
     
    784784 
    785785            OWCanvasRectangle(self.canvas, startX + xOffset, y-size/2, size, size, edgeColor, colors[i]) 
    786             self.names[i].setPos(startX + xOffset + 18, y) 
     786            self.names[i].setPos(startX + xOffset + 10, y) 
    787787            xOffset += distance + self.names[i].boundingRect().width() 
    788788 
Note: See TracChangeset for help on using the changeset viewer.