From 0134fc214224c4cdbfddc714e5b936a9ecb6d7ed Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Thu, 5 May 2011 22:58:01 +0100 Subject: [PATCH] Improve the tooltip on the author_sort button --- src/calibre/gui2/metadata/single.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/calibre/gui2/metadata/single.py b/src/calibre/gui2/metadata/single.py index 8d2a5df613..69c7677a2e 100644 --- a/src/calibre/gui2/metadata/single.py +++ b/src/calibre/gui2/metadata/single.py @@ -103,11 +103,12 @@ class MetadataSingleDialogBase(ResizableDialog): self.basic_metadata_widgets.extend([self.title, self.title_sort]) self.deduce_author_sort_button = b = QToolButton(self) - b.setToolTip(_( - 'Automatically create the author sort entry based on the current' - ' author entry.\n' - 'Using this button to create author sort will change author sort from' - ' red to green.')) + b.setToolTip('

' + + _('Automatically create the author sort entry based on the current ' + 'author entry. Using this button to create author sort will ' + 'change author sort from red to green. There is a menu of ' + 'functions available under this button. Click and hold ' + 'on the button to see it.') + '

') b.m = m = QMenu() ac = m.addAction(QIcon(I('forward.png')), _('Set author sort from author')) ac2 = m.addAction(QIcon(I('back.png')), _('Set author from author sort'))