This commit is contained in:
Kovid Goyal 2010-04-22 06:03:36 -06:00
parent d128c2ef21
commit cc75e7291b
2 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,7 @@ class SchedulerDialog(QDialog, Ui_Dialog):
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)'),

View File

@ -194,6 +194,7 @@ class EbookViewer(MainWindow, Ui_EbookViewer):
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)