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:
|
if role == Qt.ToolTipRole:
|
||||||
tt = _('This tweak has it default value')
|
tt = _('This tweak has it default value')
|
||||||
if tweak.is_customized:
|
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
|
return tt
|
||||||
if role == Qt.UserRole:
|
if role == Qt.UserRole:
|
||||||
return tweak
|
return tweak
|
||||||
|
Loading…
x
Reference in New Issue
Block a user