mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-03-09 20:01:08 +00:00
searchengine: drop unused flag and related code
This commit is contained in:
parent
ee8a492954
commit
1b24feb4f4
@ -215,7 +215,6 @@ void SearchEngine::on_search_button_clicked()
|
|||||||
search_button->setText(tr("Search"));
|
search_button->setText(tr("Search"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
allTabsSetActiveState(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reload environment variables (proxy)
|
// Reload environment variables (proxy)
|
||||||
@ -469,7 +468,6 @@ void SearchEngine::searchFinished(int exitcode, QProcess::ExitStatus)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
search_status->setText(currentSearchTab->status);
|
search_status->setText(currentSearchTab->status);
|
||||||
activeSearchTab->isActive = false;
|
|
||||||
activeSearchTab = 0;
|
activeSearchTab = 0;
|
||||||
search_button->setText(tr("Search"));
|
search_button->setText(tr("Search"));
|
||||||
}
|
}
|
||||||
@ -577,9 +575,3 @@ void SearchEngine::on_goToDescBtn_clicked()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void SearchEngine::allTabsSetActiveState(bool newState)
|
|
||||||
{
|
|
||||||
foreach(SearchTab *tab, all_tab)
|
|
||||||
tab->isActive = newState;
|
|
||||||
}
|
|
||||||
|
@ -126,7 +126,6 @@ private:
|
|||||||
QList<QPointer<SearchTab> > all_tab; // To store all tabs
|
QList<QPointer<SearchTab> > all_tab; // To store all tabs
|
||||||
const SearchCategories full_cat_names;
|
const SearchCategories full_cat_names;
|
||||||
MainWindow *mp_mainWindow;
|
MainWindow *mp_mainWindow;
|
||||||
inline void allTabsSetActiveState(bool);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -48,8 +48,6 @@ SearchTab::SearchTab(SearchEngine *parent) : QWidget(), parent(parent)
|
|||||||
resultsBrowser->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
resultsBrowser->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||||
box->addWidget(results_lbl);
|
box->addWidget(results_lbl);
|
||||||
box->addWidget(resultsBrowser);
|
box->addWidget(resultsBrowser);
|
||||||
// New tab is created with new search
|
|
||||||
isActive = true;
|
|
||||||
|
|
||||||
setLayout(box);
|
setLayout(box);
|
||||||
// Set Search results list model
|
// Set Search results list model
|
||||||
|
@ -71,7 +71,6 @@ public:
|
|||||||
QTreeView * getCurrentTreeView();
|
QTreeView * getCurrentTreeView();
|
||||||
void setRowColor(int row, QString color);
|
void setRowColor(int row, QString color);
|
||||||
QHeaderView* header() const;
|
QHeaderView* header() const;
|
||||||
bool isActive;
|
|
||||||
QString status;
|
QString status;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user