mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-29 06:52:58 +02:00
...
This commit is contained in:
parent
d128c2ef21
commit
cc75e7291b
2 changed files with 2 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ def __init__(self, recipe_model, parent=None):
|
|||
self.recipe_model.do_refresh()
|
||||
|
||||
self.search = SearchBox2(self)
|
||||
self.search.setMinimumContentsLength(25)
|
||||
self.search.initialize('scheduler_search_history')
|
||||
self.recipe_box.layout().insertWidget(0, self.search)
|
||||
self.connect(self.search, SIGNAL('search(PyQt_PyObject,PyQt_PyObject)'),
|
||||
|
|
|
|||
|
|
@ -194,6 +194,7 @@ def __init__(self, pathtoebook=None, debug_javascript=False):
|
|||
self.tool_bar2.insertSeparator(self.action_find_next)
|
||||
self.setFocusPolicy(Qt.StrongFocus)
|
||||
self.search = SearchBox2(self)
|
||||
self.search.setMinimumContentsLength(20)
|
||||
self.search.initialize('viewer_search_history')
|
||||
self.search.setToolTip(_('Search for text in book'))
|
||||
self.search.setMinimumWidth(200)
|
||||
|
|
|
|||
Loading…
Reference in a new issue