Changeset 8001:c3d92f6235f4 in orange


Ignore:
Timestamp:
06/13/11 15:34:18 (3 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
c90601f8cfa616cf71947ac2a962781fae0e3b51
Message:

Changed TableBarItems from rectangle to lines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/OWGUI.py

    r7995 r8001  
    17481748 
    17491749        if ratio is not None: 
    1750             painter.fillRect(option.rect.adjusted(0, 3, -option.rect.width() * ratio, -3), color) 
     1750#            painter.save() 
     1751#            pen = QPen(QBrush(color), 3, Qt.SolidLine, Qt.FlatCap, Qt.BevelJoin) 
     1752#            painter.setPen(pen) 
     1753#            painter.drawRect(option.rect.adjusted(0, 3, -option.rect.width() * ratio, -3)) 
     1754#            painter.restore() 
     1755 
     1756#            painter.fillRect(option.rect.adjusted(0, 3, -option.rect.width() * ratio, -3), color) 
     1757 
     1758            painter.save() 
     1759            painter.setPen(QPen(QBrush(color), 5, Qt.SolidLine, Qt.RoundCap)) 
     1760            x, y = option.rect.x(), option.rect.y()+option.rect.height() 
     1761            painter.drawLine(x+1, y-5, x+option.rect.width() * ratio, y-5) 
     1762            painter.restore() 
    17511763        text = index.data(Qt.DisplayRole).toString() 
    17521764 
Note: See TracChangeset for help on using the changeset viewer.