mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
Cosmetic changes in webview context menu
This commit is contained in:
parent
bd5f86bd6d
commit
d145b50c17
|
@ -697,13 +697,14 @@ void WebView::createSelectedTextContextMenu(QMenu* menu, const QWebHitTestResult
|
||||||
QUrl guessedUrl = QUrl::fromUserInput(selectedString);
|
QUrl guessedUrl = QUrl::fromUserInput(selectedString);
|
||||||
|
|
||||||
if (isUrlValid(guessedUrl)) {
|
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);
|
act->setData(guessedUrl);
|
||||||
connect(act, SIGNAL(triggered()), this, SLOT(openActionUrl()));
|
connect(act, SIGNAL(triggered()), this, SLOT(openActionUrl()));
|
||||||
connect(act, SIGNAL(middleClicked()), this, SLOT(openUrlInBackgroundTab()));
|
connect(act, SIGNAL(middleClicked()), this, SLOT(openUrlInBackgroundTab()));
|
||||||
menu->addAction(act);
|
menu->addAction(act);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
menu->addSeparator();
|
||||||
selectedText.truncate(20);
|
selectedText.truncate(20);
|
||||||
|
|
||||||
SearchEngine engine = mApp->searchEnginesManager()->activeEngine();
|
SearchEngine engine = mApp->searchEnginesManager()->activeEngine();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user