mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-04 06:32:29 -06:00
Remove duplicated code from search tab and widget
Both download handlers (in the tab and widget classes) convert model index into an URL, set row color, and call download function. Make the download button handler (in the SearchWidget class) call the slot of the SearchTab class.
This commit is contained in:
@@ -92,8 +92,10 @@ public:
|
||||
|
||||
void updateResultsCount();
|
||||
|
||||
public slots:
|
||||
void downloadItem(const QModelIndex &index);
|
||||
|
||||
private slots:
|
||||
void downloadSelectedItem(const QModelIndex &index);
|
||||
void updateFilter();
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user