Fix #3729 (Drag and drop of text into the search area is broken)

This commit is contained in:
Kovid Goyal 2009-10-08 15:52:59 -06:00
parent 327158b634
commit 35689bafbd

View File

@ -20,6 +20,11 @@ class SearchLineEdit(QLineEdit):
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
'''