diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-04-20 00:42:12 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-04-20 00:42:12 +0200 |
commit | 7d11112b0c1836695dee398a5122051a0ec99585 (patch) | |
tree | 01b1f4be8f1d05f1e2a1c11df3a7df53f488b654 /src/urlbar/completionwidget.h | |
parent | this commit renames Item classes with this logic (diff) | |
download | rekonq-7d11112b0c1836695dee398a5122051a0ec99585.tar.xz |
Fix default engine implementation and fix a bit code
Diffstat (limited to 'src/urlbar/completionwidget.h')
-rw-r--r-- | src/urlbar/completionwidget.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/urlbar/completionwidget.h b/src/urlbar/completionwidget.h index 896518fc..e9851484 100644 --- a/src/urlbar/completionwidget.h +++ b/src/urlbar/completionwidget.h @@ -49,6 +49,9 @@ public: virtual bool eventFilter(QObject *obj, QEvent *ev); void setVisible(bool visible); + QString searchEngine() { return _searchEngine; }; + void setCurrentEngine(const QString &engine) { _searchEngine = engine; }; + private slots: void itemChosen(ListItem *item, Qt::MouseButton = Qt::LeftButton); void suggestUrls(const QString &text); @@ -58,6 +61,8 @@ signals: void nextItemSubChoice(); private: + QString defaultSearchEngine(); + void insertSearchList(const UrlSearchList &list, const QString& text); void popup(); void clear(); @@ -70,7 +75,8 @@ private: UrlSearchList _list; int _currentIndex; - QString *_searchEngine; + + QString _searchEngine; }; #endif // COMPLETION_WIDGET_H |