def index(self, row, column, parent=QModelIndex()):
        if parent.isValid():
            return QModelIndex()
        else:
            if row >= 0 and row < len(self.cards) and column == 0:
                return self.createIndex(row, column, None)
            else:
                return QModelIndex()