code: def _resizeColumnsToContents(self, header, data, limit_ms):
          
          max_col = data.model().columnCount()
          if limit_ms is None:
              max_col_ms = None
          else:
              max_col_ms = limit_ms / max(1, max_col)
          for col in range(max_col):
              self._resizeColumnToContents(header, data, col, max_col_ms)
docs: Resize all the colummns to its contents.