From a7cecffc825c01a7d7084c01a4e86fe3ba9d4429 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 21 Oct 2009 12:18:13 +0200 Subject: Restored the "frame" sub menu we lose a bit in term of usability, but I think the submenu will help people to ustand that are "different" actions --- src/webview.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/webview.cpp') diff --git a/src/webview.cpp b/src/webview.cpp index 85ab0f21..c9160e5a 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -301,21 +301,27 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) menu.addAction(mainwindow->actionByName("view_redisplay")); + menu.addSeparator(); + menu.addAction(mainwindow->actionByName("new_tab")); menu.addAction(mainwindow->actionByName("new_window")); menu.addSeparator(); //Frame + KActionMenu *frameMenu = new KActionMenu(i18n("Current Frame"), this); + a = pageAction(QWebPage::OpenFrameInNewWindow); a->setText(i18n("Open Frame in New Tab")); a->setIcon(KIcon("view-right-new")); - menu.addAction(a); + frameMenu->addAction(a); a = new KAction( KIcon("document-print-frame"), i18n("Print Frame"), this); connect(a, SIGNAL(triggered()), this, SLOT(printFrame())); - menu.addAction(a); + frameMenu->addAction(a); + menu.addAction(frameMenu); + menu.addSeparator(); //Page -- cgit v1.2.1