Make use of QT_VERSION define instead of using our own define

This commit is contained in:
Christophe Dumez
2010-03-04 18:40:11 +00:00
parent 291b94bef0
commit e082c02630
9 changed files with 17 additions and 25 deletions

View File

@@ -64,7 +64,7 @@ private:
SupportedEngines *supported_engines;
QTimer *searchTimeout;
QPointer<SearchTab> currentSearchTab;
#ifndef QT_4_5
#if QT_VERSION < 0x040500
QPushButton *closeTab_button;
#endif
QList<QPointer<SearchTab> > all_tab; // To store all tabs
@@ -106,10 +106,10 @@ protected slots:
// Search slots
void tab_changed(int);//to prevent the use of the download button when the tab is empty
void on_search_button_clicked();
#ifdef QT_4_5
void closeTab(int index);
#else
#if QT_VERSION < 0x040500
void closeTab_button_clicked();
#else
void closeTab(int index);
#endif
void appendSearchResult(QString line);
void searchFinished(int exitcode,QProcess::ExitStatus);