def METHOD_NAME(self, index):
    if not index.isValid():
        return self.INVALID_INDEX_FLAGS
    row = self.model[index.row()]
    column = self.model._columns.column_by_index(index.column())
    return self._getFlags(row, column)