mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #3729 (Drag and drop of text into the search area is broken)
This commit is contained in:
parent
327158b634
commit
35689bafbd
@ -20,6 +20,11 @@ class SearchLineEdit(QLineEdit):
|
|||||||
self.emit(SIGNAL('mouse_released(PyQt_PyObject)'), event)
|
self.emit(SIGNAL('mouse_released(PyQt_PyObject)'), event)
|
||||||
QLineEdit.mouseReleaseEvent(self, 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):
|
class SearchBox2(QComboBox):
|
||||||
|
|
||||||
'''
|
'''
|
||||||
@ -27,7 +32,7 @@ class SearchBox2(QComboBox):
|
|||||||
|
|
||||||
* Call initialize()
|
* Call initialize()
|
||||||
* Connect to the search() and cleared() signals from this widget
|
* 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
|
* Use clear() to clear back to the help message
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user