diff options
author | Maarten De Meyer <de.meyer.maarten@gmail.com> | 2013-04-07 11:38:09 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2013-04-07 11:39:40 +0200 |
commit | 5d1a223145be0eb1bb5eed76cda7d4b889d986ed (patch) | |
tree | 1e81db324a50968f5484e073685a5bac61b2deeb /src/webtab | |
parent | Fix rekonq window title update (diff) | |
download | rekonq-5d1a223145be0eb1bb5eed76cda7d4b889d986ed.tar.xz |
Use kurifilter instead of custom rekonq code.
Now all web shortcuts work.
BUG: 258639
REVIEWED BY: adjam
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 44a54156..2d8d0e77 100644 --- a/src/webtab/webview.cpp +++ b/src/webtab/webview.cpp @@ -517,7 +517,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(SearchEngine::buildQuery(defaultEngine, ""))); + a->setIcon(IconManager::self()->iconForUrl(defaultEngine->property("Query").toUrl())); a->setData(defaultEngine->entryPath()); connect(a, SIGNAL(triggered(bool)), this, SLOT(search())); menu.addAction(a); @@ -529,7 +529,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(SearchEngine::buildQuery(engine, ""))); + a->setIcon(IconManager::self()->iconForUrl(engine->property("Query").toUrl())); a->setData(engine->entryPath()); connect(a, SIGNAL(triggered(bool)), this, SLOT(search())); searchMenu->addAction(a); @@ -639,7 +639,7 @@ void WebView::mousePressEvent(QMouseEvent *event) { KService::Ptr defaultEngine = SearchEngine::defaultEngine(); if (defaultEngine) // check if a default engine is set - load(KUrl(SearchEngine::buildQuery(defaultEngine, clipboardContent))); + load(KUrl(SearchEngine::buildQuery(clipboardContent))); } } break; |