From 06970ce896b0375cc6adc8daa18f98c7759a6400 Mon Sep 17 00:00:00 2001 From: Flavio Date: Sun, 1 Jan 2012 17:08:24 +0100 Subject: [PATCH] Minor autocomplete fixes --- src/searchlineedit.cpp | 1 + src/searchlineedit.h | 1 + src/suggester.h | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) 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 { -- 2.39.5