Sets focus to the editor. :qtdoc:`Re-implemented<QStyledItemDelegate.eventFilter>`

def eventFilter(self, editor, event):
        """Sets focus to the editor. :qtdoc:`Re-implemented<QStyledItemDelegate.eventFilter>`"""
        if event.type() == QtCore.QEvent.FocusIn:
            editor.setContentFocus()
            return True

        return super(ComponentDelegate, self).eventFilter(editor, event)