Reimplements the **QObject.eventFilter** method.

        :param object: Object.
        :type object: QObject
        :param event: Event.
        :type event: QEvent
        :return: Event filtered.
        :rtype: bool

def eventFilter(self, object, event):
        """
        Reimplements the **QObject.eventFilter** method.

        :param object: Object.
        :type object: QObject
        :param event: Event.
        :type event: QEvent
        :return: Event filtered.
        :rtype: bool
        """

        if event.type() == QEvent.MouseButtonDblClick:
            view = object.parent()
            if view.read_only:
                self.__raise_user_error(view)
                return True
        return False