mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 23:53:27 +02:00
Add customized tweak values to the tooltips
This commit is contained in:
parent
b3b9325294
commit
65dd616aac
1 changed files with 4 additions and 1 deletions
|
|
@ -111,7 +111,10 @@ def data(self, index, role):
|
|||
if role == Qt.ToolTipRole:
|
||||
tt = _('This tweak has it default value')
|
||||
if tweak.is_customized:
|
||||
tt = _('This tweak has been customized')
|
||||
tt = '<p>'+_('This tweak has been customized')
|
||||
tt += '<pre>'
|
||||
for varn, val in tweak.custom_values.iteritems():
|
||||
tt += '%s = %r\n\n'%(varn, val)
|
||||
return tt
|
||||
if role == Qt.UserRole:
|
||||
return tweak
|
||||
|
|
|
|||
Loading…
Reference in a new issue