This commit is contained in:
Kovid Goyal 2010-12-25 11:24:50 -07:00
parent cdae919bfc
commit 6e80dca1bb

View File

@ -306,7 +306,7 @@ class CcCommentsDelegate(QStyledItemDelegate): # {{{
painter.save()
if hasattr(QStyle, 'CE_ItemViewItem'):
style.drawControl(QStyle.CE_ItemViewItem, option,
painter, self._parent)
painter, self.parent())
elif option.state & QStyle.State_Selected:
painter.fillRect(option.rect, option.palette.highlight())
painter.setClipRect(option.rect)