From 3f137d56176193c2bec7c876eb935612df91475c Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sat, 28 Aug 2010 20:59:08 +0200 Subject: Restore urlbar responsiveness Suggestions are now added when ready --- src/search/opensearchmanager.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/search/opensearchmanager.h') diff --git a/src/search/opensearchmanager.h b/src/search/opensearchmanager.h index 8a45b83c..8a234df2 100644 --- a/src/search/opensearchmanager.h +++ b/src/search/opensearchmanager.h @@ -82,17 +82,17 @@ public: public slots: /** * Ask the specific suggestion engine to request for suggestion for the search text - * @param searchProvider the search provider that provides the suggestion service + * * @param searchText the text to be queried to the suggestion service */ - void requestSuggestion(const QString &searchProvider); + void requestSuggestion(const QString &searchText); private slots: void dataReceived(KIO::Job *job, const QByteArray &data); void jobFinished(KJob *job); signals: - void suggestionReceived(const QStringList &suggestion); + void suggestionReceived(const QString &text, const QStringList &suggestion); void openSearchEngineAdded(const QString &name, const QString &searchUrl, const QString &fileName); private: @@ -103,6 +103,8 @@ private: QMap m_enginesMap; OpenSearchEngine *m_activeEngine; STATE m_state; + + QString _typedText; }; #endif // OPENSEARCHMANAGER_H -- cgit v1.2.1