babdca9ce3e0a28d2feb41566f11c941ae6973f7,Orange/widgets/gui.py,ColoredBarItemDelegate,get_font,#ColoredBarItemDelegate#Any#Any#,2615

Before Change



    def get_font(self, option, index):
        font = index.data(Qt.FontRole)
        return QtGui.QFont(font) if font.isValid() else option.font

    def get_text_align(self, _, index):
        align = index.data(Qt.TextAlignmentRole)
        if align.isValid():

After Change



    def get_font(self, option, index):
        font = index.data(Qt.FontRole)
        if not isinstance(font, QtGui.QFont):
            font = option.font
        return font

    def get_text_align(self, _, index):
        align = index.data(Qt.TextAlignmentRole)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: biolab/orange3
Commit Name: babdca9ce3e0a28d2feb41566f11c941ae6973f7
Time: 2014-01-03
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/widgets/gui.py
Class Name: ColoredBarItemDelegate
Method Name: get_font


Project Name: biolab/orange3
Commit Name: d9a9943b590df022dc905c3d53df705a2a6d5866
Time: 2013-01-17
Author: anze.staric@gmail.com
File Name: Orange/canvas/preview/previewmodel.py
Class Name: PreviewItem
Method Name: thumbnail


Project Name: biolab/orange3
Commit Name: d9a9943b590df022dc905c3d53df705a2a6d5866
Time: 2013-01-17
Author: anze.staric@gmail.com
File Name: Orange/canvas/preview/previewmodel.py
Class Name: PreviewItem
Method Name: description