mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-30 10:16:24 +01:00
Fix #3729 (Drag and drop of text into the search area is broken)
This commit is contained in:
parent
327158b634
commit
35689bafbd
1 changed files with 6 additions and 1 deletions
|
|
@ -20,6 +20,11 @@ def mouseReleaseEvent(self, event):
|
|||
self.emit(SIGNAL('mouse_released(PyQt_PyObject)'), event)
|
||||
QLineEdit.mouseReleaseEvent(self, event)
|
||||
|
||||
def dropEvent(self, ev):
|
||||
if self.parent().help_state:
|
||||
self.parent().normalize_state()
|
||||
return QLineEdit.dropEvent(self, ev)
|
||||
|
||||
class SearchBox2(QComboBox):
|
||||
|
||||
'''
|
||||
|
|
@ -27,7 +32,7 @@ class SearchBox2(QComboBox):
|
|||
|
||||
* Call initialize()
|
||||
* Connect to the search() and cleared() signals from this widget
|
||||
* Call search_done() after evry search is complete
|
||||
* Call search_done() after every search is complete
|
||||
* Use clear() to clear back to the help message
|
||||
'''
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue