Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

repoview: fix check for log column

Changeset 9303d88d89be

Parent 454503f93571

by Adrian Buehlmann

Changes to one file · Browse files at 9303d88d89be Showing diff from parent 454503f93571 Diff from another changeset...

 
77
78
79
80
 
 
 
 
 
 
 
 
 
81
82
83
 
85
86
87
88
89
90
91
 
77
78
79
 
80
81
82
83
84
85
86
87
88
89
90
91
 
93
94
95
 
96
97
98
@@ -77,7 +77,15 @@
  super(HgItemDelegate, self).__init__(parent)     def paint(self, painter, styleOption, index): - if index.column() <> 3: # FIXME + # calculate index of log column + model = index.model() + logidx = -1 + for i, v in enumerate(model._columns): + if v == 'Log': + logidx = i + break + + if index.column() <> logidx:   QStyledItemDelegate.paint(self, painter, styleOption, index)   return   option = QStyleOptionViewItemV4(styleOption) @@ -85,7 +93,6 @@
    self.parent().style().drawControl(QStyle.CE_ItemViewItem, option, painter)   - model = index.model()   record = model.data(index, Qt.DisplayRole)   doc = QTextDocument(self)   #opts = dict(fg='black', bg='#ffffaa') # FIXME expect this from the model