diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-04-24 16:26:51 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-04-24 16:26:51 +0200 |
commit | 14ba17fa06be74409e0697a2dea6129428a62add (patch) | |
tree | 9fd7c78ecc3c025c1b216dc6bfd62f5c98db0d5d /src/urlbar/listitem.h | |
parent | Merge branch 'DETACH_TAB' (diff) | |
parent | update SearchEngine data when settings are changed (diff) | |
download | rekonq-14ba17fa06be74409e0697a2dea6129428a62add.tar.xz |
Merge commit 'refs/merge-requests/2250' of git://gitorious.org/rekonq/mainline into m2250
Diffstat (limited to 'src/urlbar/listitem.h')
-rw-r--r-- | src/urlbar/listitem.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/urlbar/listitem.h b/src/urlbar/listitem.h index de42fd03..c15ef3f9 100644 --- a/src/urlbar/listitem.h +++ b/src/urlbar/listitem.h @@ -126,22 +126,18 @@ class EngineBar : public KToolBar Q_OBJECT public: - EngineBar(const QString &text, const QString &selectedEngine, QWidget *parent = 0); - + EngineBar(KService::Ptr selectedEngine, QWidget *parent = 0); void selectNextEngine(); - KUrl url() { return m_url; }; signals: - void searchEngineChanged(QString url, QString engine); + void searchEngineChanged(KService::Ptr engine); private slots: void changeSearchEngine(); private: - KAction *newEngineAction(KService::Ptr service, QString selectedEngine); - + KAction *newEngineAction(KService::Ptr engine, KService::Ptr selectedEngine); QActionGroup *m_engineGroup; - KUrl m_url; }; @@ -159,7 +155,7 @@ public slots: virtual void nextItemSubChoice(); private slots: - void changeSearchEngine(QString url, QString engine); + void changeSearchEngine(KService::Ptr engine); private: QString searchItemTitle(QString engine, QString text); @@ -167,8 +163,8 @@ private: TextLabel* m_titleLabel; IconLabel* m_iconLabel; EngineBar* m_engineBar; - QString m_text; + KService::Ptr m_currentEngine; }; |