Move remove and crop functions into playqueue class

This commit is contained in:
craig.p.drummond
2013-12-10 19:47:04 +00:00
committed by craig.p.drummond
parent 8f680def58
commit 3c29b40dff
6 changed files with 48 additions and 41 deletions

View File

@@ -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;
}