mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 07:57:22 -06:00
FEATURE: Display close tab button into the tabs in search engine (Qt >= 4.5 only)
This commit is contained in:
@@ -64,7 +64,9 @@ private:
|
||||
SupportedEngines *supported_engines;
|
||||
QTimer *searchTimeout;
|
||||
SearchTab *currentSearchTab;
|
||||
#ifndef QT_4_5
|
||||
QPushButton *closeTab_button;
|
||||
#endif
|
||||
QList<SearchTab*> all_tab; // To store all tabs
|
||||
const SearchCategories full_cat_names;
|
||||
GUI *parent;
|
||||
@@ -104,7 +106,11 @@ 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
|
||||
void closeTab_button_clicked();
|
||||
#endif
|
||||
void appendSearchResult(QString line);
|
||||
void searchFinished(int exitcode,QProcess::ExitStatus);
|
||||
void readSearchOutput();
|
||||
|
||||
Reference in New Issue
Block a user