summaryrefslogtreecommitdiff
path: root/src/urlbar/completionwidget.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-04-24 16:26:51 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-24 16:26:51 +0200
commit14ba17fa06be74409e0697a2dea6129428a62add (patch)
tree9fd7c78ecc3c025c1b216dc6bfd62f5c98db0d5d /src/urlbar/completionwidget.h
parentMerge branch 'DETACH_TAB' (diff)
parentupdate SearchEngine data when settings are changed (diff)
downloadrekonq-14ba17fa06be74409e0697a2dea6129428a62add.tar.xz
Merge commit 'refs/merge-requests/2250' of git://gitorious.org/rekonq/mainline into m2250
Diffstat (limited to 'src/urlbar/completionwidget.h')
-rw-r--r--src/urlbar/completionwidget.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/urlbar/completionwidget.h b/src/urlbar/completionwidget.h
index e9851484..afd9b7e1 100644
--- a/src/urlbar/completionwidget.h
+++ b/src/urlbar/completionwidget.h
@@ -34,6 +34,7 @@
// KDE Includes
#include <KLineEdit>
+#include <KService>
// Qt Includes
#include <QFrame>
@@ -49,8 +50,8 @@ public:
virtual bool eventFilter(QObject *obj, QEvent *ev);
void setVisible(bool visible);
- QString searchEngine() { return _searchEngine; };
- void setCurrentEngine(const QString &engine) { _searchEngine = engine; };
+ KService::Ptr searchEngine() { return _searchEngine; };
+ void setCurrentEngine(KService::Ptr engine) { _searchEngine = engine; };
private slots:
void itemChosen(ListItem *item, Qt::MouseButton = Qt::LeftButton);
@@ -61,8 +62,6 @@ signals:
void nextItemSubChoice();
private:
- QString defaultSearchEngine();
-
void insertSearchList(const UrlSearchList &list, const QString& text);
void popup();
void clear();
@@ -76,7 +75,7 @@ private:
UrlSearchList _list;
int _currentIndex;
- QString _searchEngine;
+ KService::Ptr _searchEngine;
};
#endif // COMPLETION_WIDGET_H