Yuya Nishihara  committed 28d67ea

htmldelegate: remove unused column filter

It should be specified by setItemDelegateForColumn() instead.

  • Participants
  • Parent commits 09ac2bd
  • Branches default

Comments (0)

Files changed (1)

File tortoisehg/hgqt/

 from PyQt4.QtGui import *
 class HTMLDelegate(QStyledItemDelegate):
-    def __init__(self, parent=0, cols=None):
-        QStyledItemDelegate.__init__(self, parent)
-        self.cols = cols
     def paint(self, painter, option, index):
-        if self.cols and index.column() not in self.cols:
-            return QStyledItemDelegate.paint(self, painter, option, index)
         # draw selection
         option = QStyleOptionViewItemV4(option)
         self.parent().style().drawControl(QStyle.CE_ItemViewItem, option, painter)