Ignore:
Timestamp:
12/02/13 18:12:03 (5 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixed attribute icon painting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/OWGUI.py

    r11781 r11782  
    547547 
    548548def createAttributePixmap(char, color=Qt.black): 
    549     pixmap = QPixmap(13,13) 
    550549    rect = QRect(0, 0, 13, 13) 
    551     painter = QPainter() 
     550    pixmap = QPixmap(rect.size()) 
     551    pixmap.fill(Qt.transparent) 
     552    painter = QPainter(pixmap) 
    552553    painter.setRenderHint(QPainter.Antialiasing) 
    553     painter.begin(pixmap) 
    554554    painter.setPen(color) 
    555555    painter.setBrush(color) 
    556     painter.drawRoundedRect(rect, 4, 4) 
     556    painter.drawRoundedRect(rect, 3, 3) 
    557557    painter.setPen(QColor(Qt.white)) 
    558558    painter.drawText(rect, Qt.AlignCenter, char) 
Note: See TracChangeset for help on using the changeset viewer.