mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
6affbface3
commit
6e557a77ee
@ -115,7 +115,7 @@ class InterfaceAction(QObject):
|
||||
bn = self.__class__.__name__
|
||||
if getattr(self.interface_action_base_plugin, 'name'):
|
||||
bn = self.interface_action_base_plugin.name
|
||||
return u'%s (%s)'%(bn, self.name)
|
||||
return u'Interface Action: %s (%s)'%(bn, self.name)
|
||||
|
||||
def create_action(self, spec=None, attr='qaction'):
|
||||
if spec is None:
|
||||
|
@ -172,10 +172,10 @@ class Delegate(QStyledItemDelegate): # {{{
|
||||
keys = _('None')
|
||||
else:
|
||||
keys = ', '.join(keys)
|
||||
html = '<h4>%s</h4>%s: %s'%(shortcut['name'], _('Shortcuts'), keys)
|
||||
html = '<b>%s</b><br>%s: %s'%(shortcut['name'], _('Shortcuts'), keys)
|
||||
else:
|
||||
# Group
|
||||
html = '<h2>%s</h2>'%data.data
|
||||
html = '<h3>%s</h3>'%data.data
|
||||
doc = QTextDocument()
|
||||
doc.setHtml(html)
|
||||
return doc
|
||||
|
Loading…
x
Reference in New Issue
Block a user