Improve the tooltip on the author_sort button

This commit is contained in:
Charles Haley 2011-05-05 22:58:01 +01:00
parent a3fce64457
commit 0134fc2142

View File

@ -103,11 +103,12 @@ class MetadataSingleDialogBase(ResizableDialog):
self.basic_metadata_widgets.extend([self.title, self.title_sort]) self.basic_metadata_widgets.extend([self.title, self.title_sort])
self.deduce_author_sort_button = b = QToolButton(self) self.deduce_author_sort_button = b = QToolButton(self)
b.setToolTip(_( b.setToolTip('<p>' +
'Automatically create the author sort entry based on the current' _('Automatically create the author sort entry based on the current '
' author entry.\n' 'author entry. Using this button to create author sort will '
'Using this button to create author sort will change author sort from' 'change author sort from red to green. There is a menu of '
' red to green.')) 'functions available under this button. Click and hold '
'on the button to see it.') + '</p>')
b.m = m = QMenu() b.m = m = QMenu()
ac = m.addAction(QIcon(I('forward.png')), _('Set author sort from author')) ac = m.addAction(QIcon(I('forward.png')), _('Set author sort from author'))
ac2 = m.addAction(QIcon(I('back.png')), _('Set author from author sort')) ac2 = m.addAction(QIcon(I('back.png')), _('Set author from author sort'))