mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 22:53:38 +02:00
...
This commit is contained in:
parent
5cd4b3930f
commit
a59f657a69
1 changed files with 3 additions and 3 deletions
|
|
@ -88,7 +88,7 @@ def __init__(self, parent=None):
|
|||
c.activated[str].connect(self.history_selected)
|
||||
|
||||
self.line_edit.key_pressed.connect(self.key_pressed, type=Qt.DirectConnection)
|
||||
self.activated.connect(self.history_selected)
|
||||
self.activated[str].connect(self.history_selected)
|
||||
self.setEditable(True)
|
||||
self.as_you_type = True
|
||||
self.timer = QTimer()
|
||||
|
|
@ -226,7 +226,7 @@ def block_signals(self, yes):
|
|||
|
||||
def set_search_string(self, txt, store_in_history=False, emit_changed=True):
|
||||
if not store_in_history:
|
||||
self.activated.disconnect()
|
||||
self.activated[str].disconnect()
|
||||
try:
|
||||
self.setFocus(Qt.OtherFocusReason)
|
||||
if not txt:
|
||||
|
|
@ -245,7 +245,7 @@ def set_search_string(self, txt, store_in_history=False, emit_changed=True):
|
|||
self.focus_to_library.emit()
|
||||
finally:
|
||||
if not store_in_history:
|
||||
self.activated.connect(self.history_selected)
|
||||
self.activated[str].connect(self.history_selected)
|
||||
|
||||
def search_as_you_type(self, enabled):
|
||||
self.as_you_type = enabled
|
||||
|
|
|
|||
Loading…
Reference in a new issue