mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add a tooltip documenting the use of the custom URL field
This commit is contained in:
parent
d304e08ec1
commit
c383a2ce25
@ -77,6 +77,10 @@ class DefaultAuthorLink(QWidget): # {{{
|
|||||||
c.addItem(text, data)
|
c.addItem(text, data)
|
||||||
l.addRow(_('Clicking on &author names should:'), c)
|
l.addRow(_('Clicking on &author names should:'), c)
|
||||||
self.custom_url = u = QLineEdit(self)
|
self.custom_url = u = QLineEdit(self)
|
||||||
|
u.setToolTip(_(
|
||||||
|
'Enter the URL to search. It should contain the string {0}'
|
||||||
|
'\nwhich will be replaced by the author name. For example,'
|
||||||
|
'\n{1}').format('{author}', 'https://en.wikipedia.org/w/index.php?search={author}'))
|
||||||
u.textChanged.connect(self.changed_signal)
|
u.textChanged.connect(self.changed_signal)
|
||||||
u.setPlaceholderText(_('Enter the URL'))
|
u.setPlaceholderText(_('Enter the URL'))
|
||||||
c.currentIndexChanged.connect(self.current_changed)
|
c.currentIndexChanged.connect(self.current_changed)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user