From 036bd6c5ac265da394472806039ea42823fc4b89 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 15 Feb 2013 17:18:58 +0100 Subject: 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 --- src/webwindow/webwindow.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/webwindow/webwindow.cpp') 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 #include #include +#include +// Qt Includes #include #include #include @@ -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); -- cgit v1.2.1