Changeset 8899:957c2f7e573c in orange


Ignore:
Timestamp:
09/02/11 19:56:48 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
6facac7758af09397cd4b8f57aa415b37f90cd0c
Message:

Fixed a problem with some StyledItemDelegate subclasses (missing drawPrimitive(PE_PanelItemViewItem...).

Location:
orange/OrangeWidgets
Files:
2 edited

Legend:

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

    r8145 r8899  
    5858        painter.save() 
    5959        painter.setFont(option.font) 
     60         
    6061        qApp.style().drawPrimitive(QStyle.PE_PanelItemViewRow, option, painter) 
     62        qApp.style().drawPrimitive(QStyle.PE_PanelItemViewItem, option, painter) 
    6163         
    6264        showText = getattr(self, "showDistText", True) 
     
    101103        text = self.displayText(index.data(Qt.DisplayRole), QLocale()) 
    102104        painter.save() 
     105         
    103106        qApp.style().drawPrimitive(QStyle.PE_PanelItemViewRow, option, painter) 
     107        qApp.style().drawPrimitive(QStyle.PE_PanelItemViewItem, option, painter) 
     108         
    104109        rect = option.rect.adjusted(4, 4, -4, -4) 
    105110             
  • orange/OrangeWidgets/Data/OWRank.py

    r8895 r8899  
    827827        painter.save() 
    828828        painter.setFont(option.font) 
     829         
    829830        qApp.style().drawPrimitive(QStyle.PE_PanelItemViewRow, option, painter) 
     831        qApp.style().drawPrimitive(QStyle.PE_PanelItemViewItem, option, painter) 
    830832         
    831833        # TODO: Check ForegroundRole. 
Note: See TracChangeset for help on using the changeset viewer.