1 #ifndef SUGGESTCOMPLETION_H
2 #define SUGGESTCOMPLETION_H
8 class AutoComplete : public QObject {
12 AutoComplete(QWidget *parent, QLineEdit *editor);
14 bool eventFilter(QObject *obj, QEvent *ev);
15 void showCompletion(const QStringList &choices);
16 void setSuggester(Suggester* suggester);
17 QListWidget* getPopup() { return popup; }
20 void doneCompletion();
21 void preventSuggest();
24 void currentItemChanged(QListWidgetItem *current);
25 void suggestionsReady(QStringList suggestions);
28 void suggestionAccepted(const QString &suggestion);
41 #endif // SUGGESTCOMPLETION_H