summaryrefslogtreecommitdiff
path: root/src/browsermainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2008-12-02 16:22:28 +0100
committerAndrea Diamantini <adjam7@gmail.com>2008-12-02 16:22:28 +0100
commit15ecefe10101dd068c4e075fca23ba64519bedb1 (patch)
tree0985bb87525a74c1bc2d6edb5bca29fff8140301 /src/browsermainwindow.cpp
parentNew BookmarkMenu implementation (diff)
downloadrekonq-15ecefe10101dd068c4e075fca23ba64519bedb1.tar.xz
New Bookmarks menu, sharing bkmrs with Konqueror0.0.1
(And that's reKonq 1st feature!!)
Diffstat (limited to 'src/browsermainwindow.cpp')
-rw-r--r--src/browsermainwindow.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/browsermainwindow.cpp b/src/browsermainwindow.cpp
index 5b91fdb0..57c6e4bf 100644
--- a/src/browsermainwindow.cpp
+++ b/src/browsermainwindow.cpp
@@ -27,7 +27,7 @@
#include "history.h"
#include "settings.h"
#include "tabwidget.h"
-// #include "toolbarsearch.h"
+#include "bookmarks.h"
#include "webview.h"
// UI Includes
@@ -67,7 +67,6 @@ BrowserMainWindow::BrowserMainWindow(QWidget *parent, Qt::WindowFlags flags)
, m_historyForward(0)
, m_stop(0)
, m_reload(0)
- , m_bookmarkMenu(0)
{
// delete widget accepting close event
setAttribute(Qt::WA_DeleteOnClose, true);
@@ -340,13 +339,15 @@ void BrowserMainWindow::setupMenu()
// ------------------------------------------------------------- BOOKMARKS --------------------------------------------------------------------------------------------------
- KMenu* bookmarksMenu = new KMenu( i18n("&Bookmarks"), this );
-
- KUrl bookfile = KUrl( "~/.kde/share/apps/konqueror/bookmarks.xml" );
- KBookmarkManager *mgr = KBookmarkManager::managerForExternalFile( bookfile.path() ); //FIXME hardcoded path
- KActionCollection * ac = new KActionCollection( this );
- ac->addAction( "Add Bookmark" , KStandardAction::addBookmark( this, SLOT( slotAddBookmark() ) , this ) );
- m_bookmarkMenu = new KBookmarkMenu( mgr , 0 , bookmarksMenu , ac );
+ BookmarksMenu *bookmarksMenu = new BookmarksMenu( this );
+ bookmarksMenu->setTitle( i18n("&Bookmarks") );
+// m_bookmarksMenu = new KMenu( i18n("&Bookmarks"), this );
+//
+// KUrl bookfile = KUrl( "~/.kde/share/apps/konqueror/bookmarks.xml" );
+// KBookmarkManager *mgr = KBookmarkManager::managerForExternalFile( bookfile.path() ); //FIXME hardcoded path
+// KActionCollection * ac = new KActionCollection( this );
+// ac->addAction( "Add Bookmark" , KStandardAction::addBookmark( this, SLOT( slotAddBookmark() ) , this ) );
+// m_bookmarkMenu = new KBookmarkMenu( mgr , 0 , bookmarksMenu , ac );
menuBar()->addMenu( bookmarksMenu );