mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Fixed slot name
This commit is contained in:
parent
f6cc600b94
commit
2dee67edbd
2 changed files with 3 additions and 3 deletions
|
@ -56,7 +56,7 @@ SearchEngine::SearchEngine(bittorrent *BTSession, QSystemTrayIcon *myTrayIcon, b
|
||||||
connect(searchProcess, SIGNAL(started()), this, SLOT(searchStarted()));
|
connect(searchProcess, SIGNAL(started()), this, SLOT(searchStarted()));
|
||||||
connect(searchProcess, SIGNAL(readyReadStandardOutput()), this, SLOT(readSearchOutput()));
|
connect(searchProcess, SIGNAL(readyReadStandardOutput()), this, SLOT(readSearchOutput()));
|
||||||
connect(searchProcess, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(searchFinished(int,QProcess::ExitStatus)));
|
connect(searchProcess, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(searchFinished(int,QProcess::ExitStatus)));
|
||||||
connect(tabWidget,SIGNAL(currentChanged(int)),this,SLOT(on_tab_changed(int)));
|
connect(tabWidget, SIGNAL(currentChanged(int)), this, SLOT(tab_changed(int)));
|
||||||
searchTimeout = new QTimer(this);
|
searchTimeout = new QTimer(this);
|
||||||
searchTimeout->setSingleShot(true);
|
searchTimeout->setSingleShot(true);
|
||||||
connect(searchTimeout, SIGNAL(timeout()), this, SLOT(on_stop_search_button_clicked()));
|
connect(searchTimeout, SIGNAL(timeout()), this, SLOT(on_stop_search_button_clicked()));
|
||||||
|
@ -78,7 +78,7 @@ SearchEngine::~SearchEngine(){
|
||||||
delete downloader;
|
delete downloader;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SearchEngine::on_tab_changed(int t)
|
void SearchEngine::tab_changed(int t)
|
||||||
{//when we switch from a tab that is not empty to another that is empty the download button
|
{//when we switch from a tab that is not empty to another that is empty the download button
|
||||||
//doesn't have to be available
|
//doesn't have to be available
|
||||||
if(t>-1)
|
if(t>-1)
|
||||||
|
|
|
@ -66,7 +66,7 @@ class SearchEngine : public QWidget, public Ui::search_engine{
|
||||||
void downloadSelectedItem(const QModelIndex& index);
|
void downloadSelectedItem(const QModelIndex& index);
|
||||||
protected slots:
|
protected slots:
|
||||||
// Search slots
|
// Search slots
|
||||||
void on_tab_changed(int t);//to prevent the use of the download button when the tab is empty
|
void tab_changed(int);//to prevent the use of the download button when the tab is empty
|
||||||
void on_search_button_clicked();
|
void on_search_button_clicked();
|
||||||
void on_stop_search_button_clicked();
|
void on_stop_search_button_clicked();
|
||||||
void on_closeTab_button_clicked();
|
void on_closeTab_button_clicked();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue