diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-10-21 12:18:13 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-10-21 12:18:13 +0200 |
commit | a7cecffc825c01a7d7084c01a4e86fe3ba9d4429 (patch) | |
tree | f1eabe8694aaa17cc7be6f760c6826d0ba58c73d | |
parent | Merge commit 'refs/merge-requests/1865' of git://gitorious.org/rekonq/mainlin... (diff) | |
download | rekonq-a7cecffc825c01a7d7084c01a4e86fe3ba9d4429.tar.xz |
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
-rw-r--r-- | src/webview.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
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 |