(self, index, role=Qt.DisplayRole)
Reimplemented.
Reimplemented.
Reimplemented .
def data(self, index, role=Qt.DisplayRole):
        # type: (QModelIndex, int) -> Any
        """Reimplemented."""
        if not index.isValid():
            return None
        row, col = index.row(), index.column()
        assert self.__rowCount == len(self.__rows)
        if not 0 <= row < self.__rowCount:
            return None
        row = self.__rows[row]

        if not 0 <= col < len(row):
            return None

        value = row[col]
        if role == Qt.DisplayRole:
            return value
        elif role == TablePreviewModel.ColumnTypeRole:
            return self.__headerData[Qt.Horizontal][index.column()].get(role)
        else:
            return None
def data ( self , index , role = Qt . DisplayRole ) : # type: (QModelIndex, int) -> Any if not index . isValid ( ) : return None row , col = index . row ( ) , index . column ( ) assert self . __rowCount == len ( self . __rows ) if not 0 <= row < self . __rowCount : return None row = self . __rows [ row ] if not 0 <= col < len ( row ) : return None value = row [ col ] if role == Qt . DisplayRole : return value elif role == TablePreviewModel . ColumnTypeRole : return self . __headerData [ Qt . Horizontal ] [ index . column ( ) ] . get ( role ) else : return None