- Fixed PirateBay search plugin

- Using Download button in search results list now downloads the right torrents
- The search results list is no longer sorted automatically when a row color is updated
This commit is contained in:
Christophe Dumez 2009-10-24 22:49:10 +00:00
parent 966367aff6
commit d8e4732627
5 changed files with 15 additions and 8 deletions

View file

@ -135,16 +135,23 @@ QTreeView* SearchTab::getCurrentTreeView()
return resultsBrowser;
}
QStandardItemModel* SearchTab::getCurrentSearchListModel()
QSortFilterProxyModel* SearchTab::getCurrentSearchListProxy() const
{
return proxyModel;
}
QStandardItemModel* SearchTab::getCurrentSearchListModel() const
{
return SearchListModel;
}
// Set the color of a row in data model
void SearchTab::setRowColor(int row, QString color){
proxyModel->setDynamicSortFilter(false);
for(int i=0; i<proxyModel->columnCount(); ++i){
proxyModel->setData(proxyModel->index(row, i), QVariant(QColor(color)), Qt::ForegroundRole);
}
proxyModel->setDynamicSortFilter(true);
}