mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Minor changes to tooltips, etc
This commit is contained in:
parent
cc181a9d0b
commit
900ff9b93a
@ -201,7 +201,7 @@ class SearchBar(QWidget): # {{{
|
|||||||
x.setIcon(QIcon(I('config.png')))
|
x.setIcon(QIcon(I('config.png')))
|
||||||
x.setObjectName("search_option_button")
|
x.setObjectName("search_option_button")
|
||||||
l.addWidget(x)
|
l.addWidget(x)
|
||||||
x.setToolTip(_("Change search highlighting and field limit options"))
|
x.setToolTip(_("Change search highlighting and column limit options"))
|
||||||
x.setVisible(False)
|
x.setVisible(False)
|
||||||
|
|
||||||
x = parent.saved_search = SavedSearchBox(self)
|
x = parent.saved_search = SavedSearchBox(self)
|
||||||
@ -239,7 +239,7 @@ class SearchOptions(QDialog):
|
|||||||
self.setLayout(l)
|
self.setLayout(l)
|
||||||
|
|
||||||
x = QLabel(_('Use this box to change search options related to how '
|
x = QLabel(_('Use this box to change search options related to how '
|
||||||
'results are displayed and which fields are searched. '
|
'results are displayed and which columns are searched. '
|
||||||
'Changes will be remembered across calibre restarts. '
|
'Changes will be remembered across calibre restarts. '
|
||||||
'When you press OK, the last search will be redone using '
|
'When you press OK, the last search will be redone using '
|
||||||
'the new option values.'),
|
'the new option values.'),
|
||||||
@ -253,25 +253,25 @@ class SearchOptions(QDialog):
|
|||||||
l.addWidget(line, 1, 0, 1, 2)
|
l.addWidget(line, 1, 0, 1, 2)
|
||||||
|
|
||||||
x = self.search_highlight_only = QCheckBox(self)
|
x = self.search_highlight_only = QCheckBox(self)
|
||||||
x.setToolTip('<p>'+_('When searching, highlight matched books instead '
|
x.setToolTip('<p>'+_('When searching, show all books with search results '
|
||||||
'of restricting the book list to the matches.<p> You can use the '
|
'highlight instead of showing only the matches.<p> You can use the '
|
||||||
'N or F3 keys to go to the next match.'))
|
'N or F3 keys to go to the next match.'))
|
||||||
x.setChecked(highlight_cbox)
|
x.setChecked(highlight_cbox)
|
||||||
l.addWidget(x, 2, 1, 1, 1)
|
l.addWidget(x, 2, 1, 1, 1)
|
||||||
x = QLabel(_('Check this box if you want to see all books with search '
|
x = QLabel(_('Check this box if you want to see all books with search '
|
||||||
'results &highlighted'), parent=self)
|
'results &highlighted instead of only the matched books'),
|
||||||
|
parent=self)
|
||||||
x.setBuddy(self.search_highlight_only)
|
x.setBuddy(self.search_highlight_only)
|
||||||
l.addWidget(x, 2, 0, 1, 1)
|
l.addWidget(x, 2, 0, 1, 1)
|
||||||
|
|
||||||
x = self.search_limit_checkbox = QCheckBox(self)
|
x = self.search_limit_checkbox = QCheckBox(self)
|
||||||
x.setToolTip('<p>'+_('When searching for text without using lookup '
|
x.setToolTip('<p>'+_('When searching for text without using lookup '
|
||||||
'prefixes, as for example someword instead of title:someword, '
|
'prefixes, as for example someword instead of title:someword, '
|
||||||
'limit the columns searched to those named in the option '
|
'limit the columns searched to those named in the text box below.'))
|
||||||
'Preferences -> Look and Feel -> Limit non-prefixed searches to columns.'))
|
|
||||||
x.setChecked(limit_cbox)
|
x.setChecked(limit_cbox)
|
||||||
l.addWidget(x, 3, 1, 1, 1)
|
l.addWidget(x, 3, 1, 1, 1)
|
||||||
x = QLabel(_('Check this box if you want non-&prefixed searches to be '
|
x = QLabel(_('Check this box if you want non-&prefixed searches to be '
|
||||||
'limited to certain fields/lookup names'), parent=self)
|
'limited to certain columns/lookup names'), parent=self)
|
||||||
x.setBuddy(self.search_limit_checkbox)
|
x.setBuddy(self.search_limit_checkbox)
|
||||||
l.addWidget(x, 3, 0, 1, 1)
|
l.addWidget(x, 3, 0, 1, 1)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user