(self, text, case_sensitive=False, stop_at_match=True, match_exactly=False)
looks in all fields for text
            returns true, [[row, col]] if text exists
looks in all fields for text
            returns true, [[row, col]] if text exists
looks in all fields for text returns true [[ row col ]] if text exists
def contains_text(self, text, case_sensitive=False, stop_at_match=True, match_exactly=False):
        """ looks in all fields for text
            returns true, [[row, col]] if text exists
        """
        if not text:
            return

        ret_val = False
        ret_res = []
        if self.model() is not None:
            for i in range(self.model().rowCount()):
                for j in range(self.model().columnCount()):
                    item_text = self.get_item_text(i, j)
                    if item_text is None:
                        continue

                    if match_exactly:
                        if not case_sensitive:
                            _eval = item_text.lower() == text.lower()
                        else:
                            _eval = item_text == text
                    else:
                        if not case_sensitive:
                            _eval = text.lower() in item_text.lower()
                        else:
                            _eval = item_text in text

                    if _eval:
                        ret_res.append([i, j])
                        if stop_at_match:
                            break
        if ret_res:
            ret_val = True

        if ret_val:
            return ret_val, ret_res
        else:
            return ret_val, []
def contains_text ( self , text , case_sensitive = False , stop_at_match = True , match_exactly = False ) : if not text : return ret_val = False ret_res = [ ] if self . model ( ) is not None : for i in range ( self . model ( ) . rowCount ( ) ) : for j in range ( self . model ( ) . columnCount ( ) ) : item_text = self . get_item_text ( i , j ) if item_text is None : continue if match_exactly : if not case_sensitive : _eval = item_text . lower ( ) == text . lower ( ) else : _eval = item_text == text else : if not case_sensitive : _eval = text . lower ( ) in item_text . lower ( ) else : _eval = item_text in text if _eval : ret_res . append ( [ i , j ] ) if stop_at_match : break if ret_res : ret_val = True if ret_val : return ret_val , ret_res else : return ret_val , [ ]