mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
...
This commit is contained in:
parent
243fcf5b38
commit
ae9fcef788
@ -76,7 +76,6 @@ class SearchBox2(QComboBox):
|
|||||||
self.activated.connect(self.history_selected)
|
self.activated.connect(self.history_selected)
|
||||||
self.setEditable(True)
|
self.setEditable(True)
|
||||||
self.as_you_type = True
|
self.as_you_type = True
|
||||||
self.prev_search = ''
|
|
||||||
self.timer = QTimer()
|
self.timer = QTimer()
|
||||||
self.timer.setSingleShot(True)
|
self.timer.setSingleShot(True)
|
||||||
self.timer.timeout.connect(self.timer_event, type=Qt.QueuedConnection)
|
self.timer.timeout.connect(self.timer_event, type=Qt.QueuedConnection)
|
||||||
@ -154,7 +153,6 @@ class SearchBox2(QComboBox):
|
|||||||
text = unicode(self.currentText()).strip()
|
text = unicode(self.currentText()).strip()
|
||||||
if not text:
|
if not text:
|
||||||
return self.clear()
|
return self.clear()
|
||||||
self.prev_search = text
|
|
||||||
self.search.emit(text)
|
self.search.emit(text)
|
||||||
|
|
||||||
idx = self.findText(text, Qt.MatchFixedString)
|
idx = self.findText(text, Qt.MatchFixedString)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user