mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
179d5812b1
commit
9c49e000d1
@ -292,7 +292,7 @@ class SearchBox2(QComboBox): # {{{
|
|||||||
finally:
|
finally:
|
||||||
if not store_in_history:
|
if not store_in_history:
|
||||||
# QueuedConnection as workaround for https://bugreports.qt-project.org/browse/QTBUG-40807
|
# QueuedConnection as workaround for https://bugreports.qt-project.org/browse/QTBUG-40807
|
||||||
self.activated[str].connect(self.history_selected, type=Qt.QueuedConnection)
|
self.activated[native_string_type].connect(self.history_selected, type=Qt.QueuedConnection)
|
||||||
|
|
||||||
def search_as_you_type(self, enabled):
|
def search_as_you_type(self, enabled):
|
||||||
self.as_you_type = enabled
|
self.as_you_type = enabled
|
||||||
@ -325,7 +325,7 @@ class SavedSearchBox(QComboBox): # {{{
|
|||||||
self.line_edit = SearchLineEdit(self)
|
self.line_edit = SearchLineEdit(self)
|
||||||
self.setLineEdit(self.line_edit)
|
self.setLineEdit(self.line_edit)
|
||||||
self.line_edit.key_pressed.connect(self.key_pressed, type=Qt.DirectConnection)
|
self.line_edit.key_pressed.connect(self.key_pressed, type=Qt.DirectConnection)
|
||||||
self.activated[str].connect(self.saved_search_selected)
|
self.activated[native_string_type].connect(self.saved_search_selected)
|
||||||
|
|
||||||
# Turn off auto-completion so that it doesn't interfere with typing
|
# Turn off auto-completion so that it doesn't interfere with typing
|
||||||
# names of new searches.
|
# names of new searches.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user