uid -> index to conform with QAbstractItemModel