From 2dee67edbd81846dd759201e21d960a4aca7e43f Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 4 Jul 2008 16:49:08 +0000 Subject: [PATCH] - Fixed slot name --- src/searchEngine.cpp | 4 ++-- src/searchEngine.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/searchEngine.cpp b/src/searchEngine.cpp index 55172e878..bf3b9aba7 100644 --- a/src/searchEngine.cpp +++ b/src/searchEngine.cpp @@ -56,7 +56,7 @@ SearchEngine::SearchEngine(bittorrent *BTSession, QSystemTrayIcon *myTrayIcon, b connect(searchProcess, SIGNAL(started()), this, SLOT(searchStarted())); connect(searchProcess, SIGNAL(readyReadStandardOutput()), this, SLOT(readSearchOutput())); 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->setSingleShot(true); connect(searchTimeout, SIGNAL(timeout()), this, SLOT(on_stop_search_button_clicked())); @@ -78,7 +78,7 @@ SearchEngine::~SearchEngine(){ 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 //doesn't have to be available if(t>-1) diff --git a/src/searchEngine.h b/src/searchEngine.h index 66010af73..c8bd68bd6 100644 --- a/src/searchEngine.h +++ b/src/searchEngine.h @@ -66,7 +66,7 @@ class SearchEngine : public QWidget, public Ui::search_engine{ void downloadSelectedItem(const QModelIndex& index); protected 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_stop_search_button_clicked(); void on_closeTab_button_clicked();