mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add tooltip to book details pane
This commit is contained in:
parent
e882689f17
commit
b67ac4fc1d
@ -42,8 +42,8 @@ def render_rows(data):
|
|||||||
txt = prepare_string_for_xml(txt)
|
txt = prepare_string_for_xml(txt)
|
||||||
if 'id' in data:
|
if 'id' in data:
|
||||||
if key == _('Path'):
|
if key == _('Path'):
|
||||||
txt = u'<a href="path:%s">%s</a>'%(data['id'],
|
txt = u'<a href="path:%s" title="%s">%s</a>'%(data['id'],
|
||||||
_('Click to open'))
|
txt, _('Click to open'))
|
||||||
if key == _('Formats') and txt and txt != _('None'):
|
if key == _('Formats') and txt and txt != _('None'):
|
||||||
fmts = [x.strip() for x in txt.split(',')]
|
fmts = [x.strip() for x in txt.split(',')]
|
||||||
fmts = [u'<a href="format:%s:%s">%s</a>' % (data['id'], x, x) for x
|
fmts = [u'<a href="format:%s:%s">%s</a>' % (data['id'], x, x) for x
|
||||||
@ -272,6 +272,10 @@ class BookDetails(QWidget):
|
|||||||
def show_data(self, data):
|
def show_data(self, data):
|
||||||
self.cover_view.show_data(data)
|
self.cover_view.show_data(data)
|
||||||
self.book_info.show_data(data)
|
self.book_info.show_data(data)
|
||||||
|
self.setToolTip('<p>'+_('Click to open Book Details window') +
|
||||||
|
'<br><br>' + _('Path') + ': ' + data.get(_('Path'), ''))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def reset_info(self):
|
def reset_info(self):
|
||||||
self.show_data({})
|
self.show_data({})
|
||||||
|
@ -163,6 +163,10 @@ class BookInfoDisplay(QWidget):
|
|||||||
self.book_data.updateGeometry()
|
self.book_data.updateGeometry()
|
||||||
self.updateGeometry()
|
self.updateGeometry()
|
||||||
self.setVisible(True)
|
self.setVisible(True)
|
||||||
|
self.setToolTip('<p>'+_('Click to open Book Details window') +
|
||||||
|
'<br><br>' + _('Path') + ': ' + data.get(_('Path'), ''))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class StatusBarInterface(object):
|
class StatusBarInterface(object):
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user