mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-05 18:15:33 +01:00
...
This commit is contained in:
commit
d4861d6801
2 changed files with 2 additions and 0 deletions
|
|
@ -67,6 +67,7 @@ def __init__(self, parent=None):
|
|||
c = self.line_edit.completer()
|
||||
c.setCompletionMode(c.PopupCompletion)
|
||||
c.highlighted[QString].connect(self.completer_used)
|
||||
c.activated[QString].connect(self.history_selected)
|
||||
|
||||
self.line_edit.key_pressed.connect(self.key_pressed, type=Qt.DirectConnection)
|
||||
self.activated.connect(self.history_selected)
|
||||
|
|
|
|||
|
|
@ -253,6 +253,7 @@ def __init__(self, pathtoebook=None, debug_javascript=False):
|
|||
self.connect(self.vertical_scrollbar, SIGNAL('valueChanged(int)'),
|
||||
lambda x: self.goto_page(x/100.))
|
||||
self.search.search.connect(self.find)
|
||||
self.search.focus_to_library.connect(lambda: self.view.setFocus(Qt.OtherFocusReason))
|
||||
self.connect(self.toc, SIGNAL('clicked(QModelIndex)'), self.toc_clicked)
|
||||
self.connect(self.reference, SIGNAL('goto(PyQt_PyObject)'), self.goto)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue