Filters the object for particular events.
        
        :param      object | <QObject>
                    event  | <QEvent>
        
        :return     <bool> | consumed

def eventFilter( self, object, event ):
        """
        Filters the object for particular events.
        
        :param      object | <QObject>
                    event  | <QEvent>
        
        :return     <bool> | consumed
        """
        if ( event.type() == event.KeyPress ):
            if ( event.key() in (Qt.Key_Return, Qt.Key_Enter) ):
                self.addQuery()
                return True
        
        return False