mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Viewer search results: Show internal file name in which each result is found as a tooltip
This commit is contained in:
parent
5f6e4d08ed
commit
dd29c1d4c8
@ -388,6 +388,8 @@ class Results(QListWidget): # {{{
|
||||
i = QListWidgetItem(' ', self)
|
||||
i.setData(Qt.UserRole, result)
|
||||
i.setIcon(self.blank_icon)
|
||||
if getattr(result, 'file_name'):
|
||||
i.setData(Qt.ToolTipRole, _('In internal file: {}').format(result.file_name))
|
||||
return self.count()
|
||||
|
||||
def item_activated(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user