This commit is contained in:
Kovid Goyal 2020-06-25 14:04:39 +05:30
parent 5a0da12942
commit b958361a18
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -21,7 +21,7 @@ class ResultsDelegate(QStyledItemDelegate): # {{{
def result_data(self, result): def result_data(self, result):
if not hasattr(result, 'is_hidden'): if not hasattr(result, 'is_hidden'):
return None, None, None, None return None, None, None, None
return result.is_hidden, result.before, result.text, result.text return result.is_hidden, result.before, result.text, result.after
def paint(self, painter, option, index): def paint(self, painter, option, index):
QStyledItemDelegate.paint(self, painter, option, index) QStyledItemDelegate.paint(self, painter, option, index)