]> git.sur5r.net Git - minitube/commitdiff
Minor autocomplete fixes
authorFlavio <flavio@odisseo.local>
Sun, 1 Jan 2012 16:08:24 +0000 (17:08 +0100)
committerFlavio <flavio@odisseo.local>
Sun, 1 Jan 2012 16:08:24 +0000 (17:08 +0100)
src/searchlineedit.cpp
src/searchlineedit.h
src/suggester.h

index 82c7d590722258e08b38d6edecba06da81ae24b3..abd33ad6602bc0a957a9cc09ebbdd40fa54cfd6e 100644 (file)
@@ -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 &)));
 
 }
 
index c5f53a8e5b12efe2fca2197315df007f2a7bacf3..da01ca8afec2ae87fdd49f7045dbba84f0b90583 100644 (file)
@@ -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);
index dc30bd8cf59a468d0ff6e010895600d40ac1da6d..d95d026ca4a30fa9df47a62bdfde73a4e7a9a5c9 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef SUGGESTER_H
 #define SUGGESTER_H
 
-#include <QtCore>
+#include <QtGui>
 
 class Suggester : public QObject {