Improve playqueue handling when we have 1000s of entries.

This commit is contained in:
craig
2012-01-24 21:59:37 +00:00
committed by craig
parent 713a52d8a3
commit 6806bf6669
7 changed files with 60 additions and 21 deletions

View File

@@ -34,11 +34,12 @@ PlayQueueProxyModel::PlayQueueProxyModel(QObject *parent) : QSortFilterProxyMode
setFilterCaseSensitivity(Qt::CaseInsensitive);
//setSortCaseSensitivity(Qt::CaseInsensitive);
//setSortLocaleAware(true);
enabled=false;
}
bool PlayQueueProxyModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const
{
if (filterRegExp().isEmpty()) {
if (!enabled) {
return true;
}