summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-07-16 01:08:20 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-07-16 01:08:20 +0200
commit921d24971c70061fab1708dd10840b10bb91d0dd (patch)
treec1fd0651ebbc997ecb880cdb5c2cf136cecf1807 /src/mainwindow.cpp
parentrekonq 0.1.9 : Going back to future (diff)
downloadrekonq-921d24971c70061fab1708dd10840b10bb91d0dd.tar.xz
Bookmark Action Menu
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 9b88dc5e..65975a3e 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -123,7 +123,9 @@ MainWindow::MainWindow()
// Bookmark Menu
KActionMenu *bmMenu = Application::bookmarkProvider()->bookmarkActionMenu();
- actionCollection()->addAction(QLatin1String("bookmarks"), bmMenu);
+ bmMenu->setIcon(KIcon("rating"));
+ actionCollection()->addAction(QLatin1String("bookmarksActionMenu"), bmMenu);
+ ((KActionMenu *)actionByName("bookmarksActionMenu"))->setDelayed(false);
// Side Panel: this has to be done BEFORE setupGUI!!
setupSidePanel();
@@ -316,8 +318,8 @@ void MainWindow::setupActions()
connect(a, SIGNAL(triggered(bool)), m_view, SLOT(previousTab()));
// ==================== Bookmarks Actions
- QAction *ba = Application::bookmarkProvider()->actionByName("rekonq_add_bookmark");
- actionCollection()->addAction(QLatin1String("rekonq_add_bookmark"), ba);
+// QAction *ba = Application::bookmarkProvider()->actionByName("rekonq_add_bookmark");
+// actionCollection()->addAction(QLatin1String("rekonq_add_bookmark"), ba);
}
@@ -345,7 +347,7 @@ void MainWindow::setupHistoryMenu()
historyMenu->setTitle(i18n("&History"));
// setting history menu position
- menuBar()->insertMenu(actionCollection()->action("bookmarks"), historyMenu);
+ menuBar()->insertMenu(actionCollection()->action("bookmarksActionMenu"), historyMenu);
// setting initial actions
QList<QAction*> historyActions;