def _can_insert_from_mime_data(self, source): return (source.hasImage() or QTextEdit.canInsertFromMimeData(self._view.text, source))