mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Tooltips for function mode controls
This commit is contained in:
parent
d8cef2d192
commit
5de64c93a2
@ -103,6 +103,7 @@ class FunctionBox(EditWithComplete):
|
||||
self.set_separator(None)
|
||||
self.show_saved_search_actions = show_saved_search_actions
|
||||
self.refresh()
|
||||
self.setToolTip(_('Choose a function to run on matched text (by name)'))
|
||||
|
||||
def refresh(self):
|
||||
self.update_items_cache(set(functions()))
|
||||
|
@ -235,8 +235,10 @@ class SearchWidget(QWidget):
|
||||
fhl.setContentsMargins(0, 0, 0, 0)
|
||||
fhl.addWidget(fb, stretch=10, alignment=Qt.AlignVCenter)
|
||||
self.ae_func = b = QPushButton(_('Create/&edit'), self)
|
||||
b.setToolTip(_('Create a new function, or edit an existing function'))
|
||||
fhl.addWidget(b)
|
||||
self.rm_func = b = QPushButton(_('Remo&ve'), self)
|
||||
b.setToolTip(_('Remove this function'))
|
||||
fhl.addWidget(b)
|
||||
self.fsep = f = QFrame(self)
|
||||
f.setFrameShape(f.VLine)
|
||||
@ -554,9 +556,11 @@ class EditSearch(QFrame): # {{{
|
||||
g.setContentsMargins(0, 0, 0, 0)
|
||||
la.setBuddy(f)
|
||||
self.ae_func = b = QPushButton(_('Create/&edit'), self)
|
||||
b.setToolTip(_('Create a new function, or edit an existing function'))
|
||||
g.addWidget(b, 1, 1)
|
||||
g.setColumnStretch(0, 10)
|
||||
self.rm_func = b = QPushButton(_('Remo&ve'), self)
|
||||
b.setToolTip(_('Remove this function'))
|
||||
g.addWidget(b, 1, 2)
|
||||
|
||||
self.case_sensitive = c = QCheckBox(_('Case sensitive'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user