diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-07-26 19:07:25 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-07-26 19:07:25 +0200 |
commit | 96807aee813280c195224455c85d6c3e6d180c4e (patch) | |
tree | 2b5a10a23034ced528bd5c580b8cf722cb06bf8d /src/bookmarks | |
parent | SVN_SILENT made messages (.desktop file) (diff) | |
download | rekonq-96807aee813280c195224455c85d6c3e6d180c4e.tar.xz |
Back to XMLGUI.
This means configurable toolbars and the old problems
with our no menubar choice.
We'll see what will happen this time...
Yoann: can you pls check my port of the bookmarks toolbar?
Diffstat (limited to 'src/bookmarks')
-rw-r--r-- | src/bookmarks/bookmarksmanager.cpp | 10 | ||||
-rw-r--r-- | src/bookmarks/bookmarksmanager.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/bookmarks/bookmarksmanager.cpp b/src/bookmarks/bookmarksmanager.cpp index d0062ae1..7f07cf48 100644 --- a/src/bookmarks/bookmarksmanager.cpp +++ b/src/bookmarks/bookmarksmanager.cpp @@ -366,6 +366,16 @@ KActionMenu* BookmarkProvider::bookmarkActionMenu(QWidget *parent) } +KAction* BookmarkProvider::bookmarkToolBarAction(KToolBar *t) +{ + KAction *bookmarkToolBarAction = new KAction(this); + bookmarkToolBarAction->setDefaultWidget(t); // The ownership is transferred to action + bookmarkToolBarAction->setText(i18n("Bookmarks Bar")); + bookmarkToolBarAction->setShortcutConfigurable(false); + return bookmarkToolBarAction; +} + + void BookmarkProvider::triggerBookmarkMenu() { kDebug() << "triggering Bookmarks Menu..."; diff --git a/src/bookmarks/bookmarksmanager.h b/src/bookmarks/bookmarksmanager.h index 64945eab..fd2cfcdc 100644 --- a/src/bookmarks/bookmarksmanager.h +++ b/src/bookmarks/bookmarksmanager.h @@ -200,6 +200,7 @@ public: */ KActionMenu *bookmarkActionMenu(QWidget *parent); + KAction *bookmarkToolBarAction(KToolBar *t); /** * @short set the Bookmarks Toolbar Action |