|
|
|
@ -98,7 +98,7 @@ SearchTab::SearchTab(SearchWidget *parent)
@@ -98,7 +98,7 @@ SearchTab::SearchTab(SearchWidget *parent)
|
|
|
|
|
m_ui->resultsBrowser->setSortingEnabled(true); |
|
|
|
|
|
|
|
|
|
// Connect signals to slots (search part)
|
|
|
|
|
connect(m_ui->resultsBrowser, SIGNAL(doubleClicked(const QModelIndex&)), this, SLOT(downloadSelectedItem(const QModelIndex&))); |
|
|
|
|
connect(m_ui->resultsBrowser, SIGNAL(doubleClicked(const QModelIndex&)), this, SLOT(downloadItem(const QModelIndex&))); |
|
|
|
|
|
|
|
|
|
// Load last columns width for search results list
|
|
|
|
|
if (!loadColWidthResultsList()) |
|
|
|
@ -129,7 +129,7 @@ SearchTab::~SearchTab()
@@ -129,7 +129,7 @@ SearchTab::~SearchTab()
|
|
|
|
|
delete m_ui; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void SearchTab::downloadSelectedItem(const QModelIndex &index) |
|
|
|
|
void SearchTab::downloadItem(const QModelIndex &index) |
|
|
|
|
{ |
|
|
|
|
QString torrentUrl = m_proxyModel->data(m_proxyModel->index(index.row(), SearchSortModel::DL_LINK)).toString(); |
|
|
|
|
setRowColor(index.row(), "blue"); |
|
|
|
|