1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Cosmetic changes in webview context menu

This commit is contained in:
Mladen Pejaković 2012-02-24 20:55:35 +01:00
parent bd5f86bd6d
commit d145b50c17

View File

@ -697,13 +697,14 @@ void WebView::createSelectedTextContextMenu(QMenu* menu, const QWebHitTestResult
QUrl guessedUrl = QUrl::fromUserInput(selectedString);
if (isUrlValid(guessedUrl)) {
Action* act = new Action(tr("Go to &web address"));
Action* act = new Action(QIcon::fromTheme("document-open-remote"), tr("Go to &web address"));
act->setData(guessedUrl);
connect(act, SIGNAL(triggered()), this, SLOT(openActionUrl()));
connect(act, SIGNAL(middleClicked()), this, SLOT(openUrlInBackgroundTab()));
menu->addAction(act);
}
menu->addSeparator();
selectedText.truncate(20);
SearchEngine engine = mApp->searchEnginesManager()->activeEngine();