mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
added autocompletion to search engine
This commit is contained in:
parent
dbd6c404ec
commit
8df90e2567
4 changed files with 52 additions and 3 deletions
|
@ -50,6 +50,7 @@
|
|||
|
||||
class createtorrent;
|
||||
class QTimer;
|
||||
class QCompleter;
|
||||
class DLListDelegate;
|
||||
class SearchListDelegate;
|
||||
class downloadThread;
|
||||
|
@ -101,6 +102,8 @@ class GUI : public QMainWindow, private Ui::MainWindow{
|
|||
unsigned long nb_search_results;
|
||||
QTcpServer tcpServer;
|
||||
QTcpSocket *clientConnection;
|
||||
QCompleter *searchCompleter;
|
||||
QStringList searchHistory;
|
||||
|
||||
protected slots:
|
||||
// GUI related slots
|
||||
|
@ -174,6 +177,8 @@ class GUI : public QMainWindow, private Ui::MainWindow{
|
|||
void readSearchOutput();
|
||||
void searchStarted();
|
||||
void downloadSelectedItem(const QModelIndex& index);
|
||||
void startSearchHistory();
|
||||
void saveSearchHistory();
|
||||
// Utils slots
|
||||
void setRowColor(int row, const QString& color, bool inDLList=true);
|
||||
// Options slots
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue