Move remove and crop functions into playqueue class
This commit is contained in:
committed by
craig.p.drummond
parent
8f680def58
commit
3c29b40dff
@@ -130,3 +130,12 @@ void ProxyModel::sort(int column, Qt::SortOrder order)
|
||||
isSorted=true;
|
||||
}
|
||||
}
|
||||
|
||||
QList<int> ProxyModel::mapToSourceRows(const QModelIndexList &list) const
|
||||
{
|
||||
QList<int> rows;
|
||||
foreach (const QModelIndex &idx, list) {
|
||||
rows.append(mapToSource(idx).row());
|
||||
}
|
||||
return rows;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user