added autocompletion to search engine

This commit is contained in:
Arnaud Demaiziere 2007-03-04 17:13:29 +00:00
parent dbd6c404ec
commit 8df90e2567
4 changed files with 52 additions and 3 deletions

View file

@ -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