mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-06 18:14:09 +01:00
Tags browser find: put placeholder text back. Add tooltips.
This commit is contained in:
parent
afd18eec88
commit
138c323f2d
1 changed files with 7 additions and 1 deletions
|
|
@ -1143,13 +1143,19 @@ def __init__(self, parent):
|
|||
self._layout.addLayout(search_layout)
|
||||
self.item_search = HistoryLineEdit(parent)
|
||||
try:
|
||||
self.item_search.setPlaceholderText(_('Find item in tag browser'))
|
||||
self.item_search.lineEdit().setPlaceholderText(_('Find item in tag browser'))
|
||||
except:
|
||||
# Using Qt < 4.7
|
||||
pass
|
||||
self.item_search.setToolTip(_(
|
||||
'Search for items. This is a "contains" search; items containing the\n'
|
||||
'text anywhere in the name will be found. You can limit the search\n'
|
||||
'to particular categories using syntax similar to search. For example,\n'
|
||||
'tags:foo will find foo in any tag, but not in authors etc.'))
|
||||
search_layout.addWidget(self.item_search)
|
||||
self.search_button = QPushButton()
|
||||
self.search_button.setText(_('Find!'))
|
||||
self.search_button.setToolTip(_('Find the first/next matching item'))
|
||||
self.search_button.setFixedWidth(40)
|
||||
search_layout.addWidget(self.search_button)
|
||||
self.current_position = None
|
||||
|
|
|
|||
Loading…
Reference in a new issue