enthought/pyface — pull request #61 by pberkes (2012-10-29 17:31:23+00:00)
Title: REF: Refactor the drag-and-drop interface.

I'm doing this small step because it requires a change in
other applications.

Changes:

* `handle_drop` was calling can_handle_drop in every
implementation, since it needed to check again that
it can handle the drop event. Now use a more classical
pattern:

if handler.can_handle_drop(event):
handler.handle_drop(event)

* dropEvent and dragEnterEvent do not return any value
(PyQt4 complains)

* QTabBars are not pickle-able, set pickle=False in the
PyMimeData definition

* clean up tab characters and line lengths in a couple
of places