summaryrefslogtreecommitdiff
path: root/src/webwindow/webwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-02-15 17:18:58 +0100
committerAndrea Diamantini <adjam7@gmail.com>2013-02-15 17:18:58 +0100
commit036bd6c5ac265da394472806039ea42823fc4b89 (patch)
tree57422f10d5dd092d5db1bed40639eb2770aa1ab6 /src/webwindow/webwindow.cpp
parentGet sure rules with not supported filter options are ignored (diff)
downloadrekonq-036bd6c5ac265da394472806039ea42823fc4b89.tar.xz
Restores Bookmarks menu (in 2.x fashion)
Cleans up 1.x code about and create a unique bk menu to be shown in rekonq tools menu, (eventually) in the toolbar and in (an ideal) menubar This work starts from Lindsay's review request about. Thanks :) REVIEW: 108729
Diffstat (limited to 'src/webwindow/webwindow.cpp')
-rw-r--r--src/webwindow/webwindow.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/webwindow/webwindow.cpp b/src/webwindow/webwindow.cpp
index faf919a7..75636dbd 100644
--- a/src/webwindow/webwindow.cpp
+++ b/src/webwindow/webwindow.cpp
@@ -62,7 +62,9 @@
#include <KToolBar>
#include <KToggleFullScreenAction>
#include <KShortcutsDialog>
+#include <KRun>
+// Qt Includes
#include <QLabel>
#include <QStyle>
#include <QTextDocument>
@@ -303,6 +305,14 @@ void WebWindow::setupActions()
// Edit bookmarks
a = KStandardAction::editBookmarks(BookmarkManager::self(), SLOT(slotEditBookmarks()), actionCollection());
+
+ // Bookmark Menu
+ KActionMenu *bmMenu = BookmarkManager::self()->bookmarkActionMenu(this);
+ bmMenu->setIcon(KIcon("bookmarks"));
+ bmMenu->setDelayed(false);
+ bmMenu->setShortcutConfigurable(true);
+ bmMenu->setShortcut(KShortcut(Qt::ALT + Qt::Key_B));
+ actionCollection()->addAction(QL1S("bookmarksActionMenu"), bmMenu);
// User Agent
a = new KAction(KIcon("preferences-web-browser-identification"), i18n("Browser Identification"), this);