Fix #3367 ('QMouseEvent' object has no attribute 'key')

This commit is contained in:
Kovid Goyal 2009-08-31 08:16:01 -06:00
parent 02a53f9064
commit c1eceec7e7

View File

@ -41,7 +41,7 @@ class SearchBox2(QComboBox):
self.connect(self.line_edit, SIGNAL('key_pressed(PyQt_PyObject)'), self.connect(self.line_edit, SIGNAL('key_pressed(PyQt_PyObject)'),
self.key_pressed, Qt.DirectConnection) self.key_pressed, Qt.DirectConnection)
self.connect(self.line_edit, SIGNAL('mouse_released(PyQt_PyObject)'), self.connect(self.line_edit, SIGNAL('mouse_released(PyQt_PyObject)'),
self.key_pressed, Qt.DirectConnection) self.mouse_released, Qt.DirectConnection)
self.setEditable(True) self.setEditable(True)
self.help_state = True self.help_state = True
self.as_you_type = True self.as_you_type = True