summaryrefslogtreecommitdiff
path: root/src/urlbar/urlresolver.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/urlbar/urlresolver.h')
-rw-r--r--src/urlbar/urlresolver.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/urlbar/urlresolver.h b/src/urlbar/urlresolver.h
index f16c44f8..a94ef1de 100644
--- a/src/urlbar/urlresolver.h
+++ b/src/urlbar/urlresolver.h
@@ -30,6 +30,8 @@
// Rekonq Includes
#include "rekonq_defines.h"
+#include "application.h"
+#include "opensearchmanager.h"
// KDE Includes
#include <KUrl>
@@ -38,7 +40,7 @@
// Qt Includes
#include <QString>
#include <QList>
-#include <QStringList>
+#include "suggestionparser.h"
class UrlSearchItem
@@ -113,12 +115,13 @@ public:
static void setSearchEngine(KService::Ptr engine)
{
_searchEngine = engine;
+ Application::opensearchManager()->setSearchProvider(engine->desktopEntryName());
};
void computeSuggestions();
private Q_SLOTS:
- void suggestionsReceived(const QString &text, const QStringList &suggestions);
+ void suggestionsReceived(const QString &text, const ResponseList &suggestions);
Q_SIGNALS:
void suggestionsReady(const UrlSearchList &, const QString &);