mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-10 09:24:59 -06:00
- BUGFIX: Fixed PirateBay search plugin
- BUGFIX: Using Download button in search results list now downloads the right torrents - BUGFIX: The search results list is no longer sorted automatically when a row color is updated
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
* Unknown - Christophe Dumez <chris@qbittorrent.org> - v1.5.4
|
* Unreleased - Christophe Dumez <chris@qbittorrent.org> - v1.5.4
|
||||||
- BUGFIX: Updated man page
|
- BUGFIX: Updated man page
|
||||||
- BUGFIX: Fixed possible crash with torrents containing unicode characters
|
- BUGFIX: Fixed possible crash with torrents containing unicode characters
|
||||||
- BUGFIX: Fixed problem when disabling systray integration and starting minimized
|
- BUGFIX: Fixed problem when disabling systray integration and starting minimized
|
||||||
|
- BUGFIX: Fixed PirateBay search plugin
|
||||||
|
- BUGFIX: Using Download button in search results list now downloads the right torrents
|
||||||
|
- BUGFIX: The search results list is no longer sorted automatically when a row color is updated
|
||||||
|
|
||||||
* Wed Sep 30 2009 - Christophe Dumez <chris@qbittorrent.org> - v1.5.3
|
* Wed Sep 30 2009 - Christophe Dumez <chris@qbittorrent.org> - v1.5.3
|
||||||
- BUGFIX: Fix a possible crash when pausing then deleting a torrent quickly
|
- BUGFIX: Fix a possible crash when pausing then deleting a torrent quickly
|
||||||
|
|||||||
@@ -135,16 +135,23 @@ QTreeView* SearchTab::getCurrentTreeView()
|
|||||||
return resultsBrowser;
|
return resultsBrowser;
|
||||||
}
|
}
|
||||||
|
|
||||||
QStandardItemModel* SearchTab::getCurrentSearchListModel()
|
QSortFilterProxyModel* SearchTab::getCurrentSearchListProxy() const
|
||||||
|
{
|
||||||
|
return proxyModel;
|
||||||
|
}
|
||||||
|
|
||||||
|
QStandardItemModel* SearchTab::getCurrentSearchListModel() const
|
||||||
{
|
{
|
||||||
return SearchListModel;
|
return SearchListModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the color of a row in data model
|
// Set the color of a row in data model
|
||||||
void SearchTab::setRowColor(int row, QString color){
|
void SearchTab::setRowColor(int row, QString color){
|
||||||
|
proxyModel->setDynamicSortFilter(false);
|
||||||
for(int i=0; i<proxyModel->columnCount(); ++i){
|
for(int i=0; i<proxyModel->columnCount(); ++i){
|
||||||
proxyModel->setData(proxyModel->index(row, i), QVariant(QColor(color)), Qt::ForegroundRole);
|
proxyModel->setData(proxyModel->index(row, i), QVariant(QColor(color)), Qt::ForegroundRole);
|
||||||
}
|
}
|
||||||
|
proxyModel->setDynamicSortFilter(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -63,7 +63,8 @@ public:
|
|||||||
~SearchTab();
|
~SearchTab();
|
||||||
bool loadColWidthResultsList();
|
bool loadColWidthResultsList();
|
||||||
QLabel * getCurrentLabel();
|
QLabel * getCurrentLabel();
|
||||||
QStandardItemModel * getCurrentSearchListModel();
|
QStandardItemModel* getCurrentSearchListModel() const;
|
||||||
|
QSortFilterProxyModel* getCurrentSearchListProxy() const;
|
||||||
QTreeView * getCurrentTreeView();
|
QTreeView * getCurrentTreeView();
|
||||||
void setRowColor(int row, QString color);
|
void setRowColor(int row, QString color);
|
||||||
QHeaderView* header() const;
|
QHeaderView* header() const;
|
||||||
|
|||||||
@@ -42,6 +42,7 @@
|
|||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
#include <QClipboard>
|
#include <QClipboard>
|
||||||
#include <QMimeData>
|
#include <QMimeData>
|
||||||
|
#include <QSortFilterProxyModel>
|
||||||
|
|
||||||
#include "searchEngine.h"
|
#include "searchEngine.h"
|
||||||
#include "bittorrent.h"
|
#include "bittorrent.h"
|
||||||
@@ -523,7 +524,7 @@ void SearchEngine::on_download_button_clicked(){
|
|||||||
foreach(const QModelIndex &index, selectedIndexes){
|
foreach(const QModelIndex &index, selectedIndexes){
|
||||||
if(index.column() == NAME){
|
if(index.column() == NAME){
|
||||||
// Get Item url
|
// Get Item url
|
||||||
QStandardItemModel *model = all_tab.at(tabWidget->currentIndex())->getCurrentSearchListModel();
|
QSortFilterProxyModel* model = all_tab.at(tabWidget->currentIndex())->getCurrentSearchListProxy();
|
||||||
QString torrent_url = model->data(model->index(index.row(), URL_COLUMN)).toString();
|
QString torrent_url = model->data(model->index(index.row(), URL_COLUMN)).toString();
|
||||||
QString engine_url = model->data(model->index(index.row(), ENGINE_URL_COLUMN)).toString();
|
QString engine_url = model->data(model->index(index.row(), ENGINE_URL_COLUMN)).toString();
|
||||||
downloadTorrent(engine_url, torrent_url);
|
downloadTorrent(engine_url, torrent_url);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#VERSION: 1.21
|
#VERSION: 1.22
|
||||||
#AUTHORS: Fabien Devaux (fab@gnux.info)
|
#AUTHORS: Fabien Devaux (fab@gnux.info)
|
||||||
#CONTRIBUTORS: Christophe Dumez (chris@qbittorrent.org)
|
#CONTRIBUTORS: Christophe Dumez (chris@qbittorrent.org)
|
||||||
|
|
||||||
@@ -101,8 +101,6 @@ class piratebay(object):
|
|||||||
while True and i<11:
|
while True and i<11:
|
||||||
results = []
|
results = []
|
||||||
parser = self.SimpleSGMLParser(results, self.url)
|
parser = self.SimpleSGMLParser(results, self.url)
|
||||||
print self.url+'/search/%s/%u/99/%s' % (what, i, self.supported_categories[cat])
|
|
||||||
return
|
|
||||||
dat = retrieve_url(self.url+'/search/%s/%u/99/%s' % (what, i, self.supported_categories[cat]))
|
dat = retrieve_url(self.url+'/search/%s/%u/99/%s' % (what, i, self.supported_categories[cat]))
|
||||||
parser.feed(dat)
|
parser.feed(dat)
|
||||||
parser.close()
|
parser.close()
|
||||||
|
|||||||
@@ -2,4 +2,4 @@ isohunt: 1.30
|
|||||||
torrentreactor: 1.20
|
torrentreactor: 1.20
|
||||||
btjunkie: 2.21
|
btjunkie: 2.21
|
||||||
mininova: 1.31
|
mininova: 1.31
|
||||||
piratebay: 1.21
|
piratebay: 1.22
|
||||||
|
|||||||
Reference in New Issue
Block a user