'Return data at table index'

def data(self, index, role=Qt.DisplayRole):

    if (not index.isValid()):
        return to_qvariant()
    dep = self.dependencies[index.row()]
    if (role == Qt.DisplayRole):
        if (index.column() == 0):
            value = 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.BackgroundColorRole):
        from spyder.dependencies import Dependency
        status = dep.get_status()
        if (status == Dependency.NOK):
            color = QColor(Qt.red)
            color.setAlphaF(0.25)
            return to_qvariant(color)
