From: Flavio Date: Sun, 1 Jan 2012 16:08:24 +0000 (+0100) Subject: Minor autocomplete fixes X-Git-Tag: 1.7~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=06970ce896b0375cc6adc8daa18f98c7759a6400;p=minitube Minor autocomplete fixes --- diff --git a/src/searchlineedit.cpp b/src/searchlineedit.cpp index 82c7d59..abd33ad 100644 --- a/src/searchlineedit.cpp +++ b/src/searchlineedit.cpp @@ -181,6 +181,7 @@ m_searchButton(new SearchButton(this)) // completion completion = new AutoComplete(this, m_lineEdit); + connect(completion, SIGNAL(suggestionAccepted(const QString &)), SIGNAL(suggestionAccepted(const QString &))); } diff --git a/src/searchlineedit.h b/src/searchlineedit.h index c5f53a8..da01ca8 100644 --- a/src/searchlineedit.h +++ b/src/searchlineedit.h @@ -81,6 +81,7 @@ class SearchLineEdit : public ExLineEdit signals: void textChanged(const QString &text); void search(const QString &text); + void suggestionAccepted(const QString &suggestion); public: SearchLineEdit(QWidget *parent = 0); diff --git a/src/suggester.h b/src/suggester.h index dc30bd8..d95d026 100644 --- a/src/suggester.h +++ b/src/suggester.h @@ -1,7 +1,7 @@ #ifndef SUGGESTER_H #define SUGGESTER_H -#include +#include class Suggester : public QObject {