QList<QPersistentModelIndex> parents;
foreach (const QPersistentModelIndex &parent, sourceParents) {
if (!parent.isValid()) {
- parents << QModelIndex();
+ parents << QPersistentModelIndex();
continue;
}
const QModelIndex mappedParent = q->mapFromSource(parent);
QList<QPersistentModelIndex> parents;
foreach (const QPersistentModelIndex &parent, sourceParents) {
if (!parent.isValid()) {
- parents << QModelIndex();
+ parents << QPersistentModelIndex();
continue;
}
const QModelIndex mappedParent = q->mapFromSource(parent);