From 65dd616aacedc66e74c1d9372d4b124a37441ac2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 11 Feb 2011 09:05:43 -0700 Subject: [PATCH] Add customized tweak values to the tooltips --- src/calibre/gui2/preferences/tweaks.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/preferences/tweaks.py b/src/calibre/gui2/preferences/tweaks.py index 10056ccb7b..9928e6a892 100644 --- a/src/calibre/gui2/preferences/tweaks.py +++ b/src/calibre/gui2/preferences/tweaks.py @@ -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 = '

'+_('This tweak has been customized') + tt += '

'
+                for varn, val in tweak.custom_values.iteritems():
+                    tt += '%s = %r\n\n'%(varn, val)
             return tt
         if role == Qt.UserRole:
             return tweak