summaryrefslogtreecommitdiff
path: root/src/bookmarks/bookmarkprovider.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-08-23 00:36:13 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-08-23 00:36:13 +0200
commit675dc346a698fecb60e65cf099ef123129a014a7 (patch)
tree531f4b65c62b409e0e438503072b969145467174 /src/bookmarks/bookmarkprovider.cpp
parentMerge commit 'refs/merge-requests/189' of git://gitorious.org/rekonq/mainline... (diff)
parentUseless include (diff)
downloadrekonq-675dc346a698fecb60e65cf099ef123129a014a7.tar.xz
Merge commit 'refs/merge-requests/190' of git://gitorious.org/rekonq/mainline into m190
Diffstat (limited to 'src/bookmarks/bookmarkprovider.cpp')
-rw-r--r--src/bookmarks/bookmarkprovider.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/bookmarks/bookmarkprovider.cpp b/src/bookmarks/bookmarkprovider.cpp
index 41704f58..f07c5164 100644
--- a/src/bookmarks/bookmarkprovider.cpp
+++ b/src/bookmarks/bookmarkprovider.cpp
@@ -33,7 +33,6 @@
// Local Includes
#include "application.h"
#include "bookmarkspanel.h"
-#include "bookmarkscontextmenu.h"
#include "bookmarkstoolbar.h"
#include "bookmarkowner.h"
@@ -109,8 +108,6 @@ void BookmarkProvider::registerBookmarkBar(BookmarkToolBar *toolbar)
kDebug() << "new bookmark bar...";
m_bookmarkToolBars.append(toolbar);
- toolbar->toolBar()->setContextMenuPolicy(Qt::CustomContextMenu);
- connect(toolbar->toolBar(), SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(contextMenu(const QPoint&)));
kDebug() << "new bookmark bar... DONE!";
}
@@ -183,24 +180,6 @@ KBookmark BookmarkProvider::bookmarkForUrl(const KUrl &url)
}
-void BookmarkProvider::contextMenu(const QPoint &point)
-{
- if (m_bookmarkToolBars.isEmpty())
- return;
-
- KToolBar *bookmarkToolBar = m_bookmarkToolBars.at(0)->toolBar();
- if (!bookmarkToolBar)
- return;
-
- KBookmarkActionInterface *action = dynamic_cast<KBookmarkActionInterface*>(bookmarkToolBar->actionAt(point));
- if (!action)
- return;
-
- BookmarksContextMenu menu(action->bookmark(), bookmarkManager(), bookmarkOwner());
- menu.exec(bookmarkToolBar->mapToGlobal(point));
-}
-
-
void BookmarkProvider::slotBookmarksChanged(const QString& /*groupAddress*/, const QString& /*caller*/)
{
foreach(BookmarkToolBar *bookmarkToolBar, m_bookmarkToolBars)