code: def data(self, index, role=Qt.DisplayRole):
          
          if not index.isValid():
              return to_qvariant()
          if role == Qt.DisplayRole:
              if index.column() == 0:
                  value = osp.basename(self.get_value(index))
                  return to_qvariant(value)
              else:
                  value = self.get_value(index)
                  return to_qvariant(value)
          elif role == Qt.TextAlignmentRole:
              return to_qvariant(int(Qt.AlignLeft|Qt.AlignVCenter))
          elif role == Qt.ToolTipRole:
              if index.column() == 0:
                  value = self.get_value(index)
                  return to_qvariant(value)
              else:
                  return to_qvariant()
docs: Return data at table index