diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-07-16 01:08:20 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-07-16 01:08:20 +0200 |
commit | 921d24971c70061fab1708dd10840b10bb91d0dd (patch) | |
tree | c1fd0651ebbc997ecb880cdb5c2cf136cecf1807 /src | |
parent | rekonq 0.1.9 : Going back to future (diff) | |
download | rekonq-921d24971c70061fab1708dd10840b10bb91d0dd.tar.xz |
Bookmark Action Menu
Diffstat (limited to 'src')
-rw-r--r-- | src/bookmarks.cpp | 2 | ||||
-rw-r--r-- | src/mainwindow.cpp | 10 | ||||
-rw-r--r-- | src/rekonqui.rc | 4 |
3 files changed, 9 insertions, 7 deletions
diff --git a/src/bookmarks.cpp b/src/bookmarks.cpp index d4aa5a58..8fc01838 100644 --- a/src/bookmarks.cpp +++ b/src/bookmarks.cpp @@ -109,7 +109,7 @@ BookmarkMenu::BookmarkMenu(KBookmarkManager *manager, { KAction *a = KStandardAction::addBookmark(this, SLOT(slotAddBookmark()), this); - a->setIcon(KIcon("rating")); +// a->setIcon(KIcon("rating")); a->setText(i18n("Add Bookmark")); actionCollection->addAction(QLatin1String("rekonq_add_bookmark"),a); } 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; diff --git a/src/rekonqui.rc b/src/rekonqui.rc index 34e705f0..dfb7aef7 100644 --- a/src/rekonqui.rc +++ b/src/rekonqui.rc @@ -55,7 +55,7 @@ </Action> <!-- ============ BOOKMARKS menu =========== --> -<Action name="bookmarks" ><text>&Bookmarks</text> +<Action name="bookmarksActionMenu" ><text>&Bookmarks</text> </Action> <!-- ============ TOOLS menu =========== --> @@ -88,7 +88,7 @@ <Action name="stop_reload" /> <Action name="go_home" /> <Action name="url_bar" /> - <Action name="rekonq_add_bookmark" /> + <Action name="bookmarksActionMenu" /> <Action name="options_configure" /> </ToolBar> |