diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2013-04-28 12:03:34 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2013-04-28 12:03:34 +0200 |
commit | 19d72dc2010bca77bfbca966f2c58c589e782edd (patch) | |
tree | 20e0ded039a46a951dae6e785763f435c188be00 /src/webtab | |
parent | Well... get EXTREMELY sure menubar are registered... (diff) | |
download | rekonq-19d72dc2010bca77bfbca966f2c58c589e782edd.tar.xz |
Revert "Use kurifilter instead of custom rekonq code."
This reverts commit 5d1a223145be0eb1bb5eed76cda7d4b889d986ed.
Conflicts:
src/searchengine.cpp
src/urlresolver.cpp
Diffstat (limited to 'src/webtab')
-rw-r--r-- | src/webtab/webview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/webtab/webview.cpp b/src/webtab/webview.cpp index df91451f..ac46e9c4 100644 --- a/src/webtab/webview.cpp +++ b/src/webtab/webview.cpp @@ -515,7 +515,7 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) { a = new KAction(i18nc("Search selected text with the default search engine", "Search with %1", defaultEngine->name()), &menu); - a->setIcon(IconManager::self()->iconForUrl(defaultEngine->property("Query").toUrl())); + a->setIcon(IconManager::self()->iconForUrl(SearchEngine::buildQuery(defaultEngine, ""))); a->setData(defaultEngine->entryPath()); connect(a, SIGNAL(triggered(bool)), this, SLOT(search())); menu.addAction(a); @@ -527,7 +527,7 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) Q_FOREACH(const KService::Ptr & engine, SearchEngine::favorites()) { a = new KAction(i18nc("@item:inmenu Search, %1 = search engine", "With %1", engine->name()), &menu); - a->setIcon(IconManager::self()->iconForUrl(engine->property("Query").toUrl())); + a->setIcon(IconManager::self()->iconForUrl(SearchEngine::buildQuery(engine, ""))); a->setData(engine->entryPath()); connect(a, SIGNAL(triggered(bool)), this, SLOT(search())); searchMenu->addAction(a); @@ -640,7 +640,7 @@ void WebView::mousePressEvent(QMouseEvent *event) { KService::Ptr defaultEngine = SearchEngine::defaultEngine(); if (defaultEngine) // check if a default engine is set - load(KUrl(SearchEngine::buildQuery(clipboardContent))); + load(KUrl(SearchEngine::buildQuery(defaultEngine, clipboardContent))); } } break; |