mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge from trunk
This commit is contained in:
commit
1311f65c49
@ -111,7 +111,10 @@ class Tweaks(QAbstractListModel): # {{{
|
||||
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…
x
Reference in New Issue
Block a user