'Reimplement Qt method
Inform Qt about the types of data that the widget accepts'

def dragEnterEvent(self, event):

    if mimedata2url(event.mimeData()):
        event.ignore()
    else:
        TextEditBaseWidget.dragEnterEvent(self, event)
