summaryrefslogtreecommitdiff
path: root/src/bookmarks/bookmarkstoolbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-11-14 18:49:04 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-12-12 16:40:28 +0100
commitb111a11cb46bfd572c2fed9c67d648bcff10a3ce (patch)
treea5a12a0ac980f6af2fe245d8cdd8575dd8e95601 /src/bookmarks/bookmarkstoolbar.cpp
parentlet history, bookmarks and passwords sync on change (first bits) (diff)
downloadrekonq-b111a11cb46bfd572c2fed9c67d648bcff10a3ce.tar.xz
BookmarkProvider --> BookmarkManager
We have 7 managers and 1 provider... finally fixing this strange thing!
Diffstat (limited to 'src/bookmarks/bookmarkstoolbar.cpp')
-rw-r--r--src/bookmarks/bookmarkstoolbar.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/bookmarks/bookmarkstoolbar.cpp b/src/bookmarks/bookmarkstoolbar.cpp
index 5fc76561..56793248 100644
--- a/src/bookmarks/bookmarkstoolbar.cpp
+++ b/src/bookmarks/bookmarkstoolbar.cpp
@@ -34,7 +34,7 @@
#include "bookmarkscontextmenu.h"
#include "mainwindow.h"
#include "application.h"
-#include "bookmarkprovider.h"
+#include "bookmarkmanager.h"
#include "bookmarkowner.h"
#include "webtab.h"
@@ -136,7 +136,7 @@ void BookmarkMenu::addOpenFolderInTabs()
if (!bookmark.isNull())
{
- parentMenu()->addAction(rApp->bookmarkProvider()->bookmarkOwner()->createAction(group, BookmarkOwner::OPEN_FOLDER));
+ parentMenu()->addAction(rApp->bookmarkManager()->owner()->createAction(group, BookmarkOwner::OPEN_FOLDER));
}
}
}
@@ -164,14 +164,14 @@ BookmarkToolBar::BookmarkToolBar(KToolBar *toolBar, QObject *parent)
{
toolBar->setContextMenuPolicy(Qt::CustomContextMenu);
connect(toolBar, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(contextMenu(const QPoint &)));
- connect(rApp->bookmarkProvider()->bookmarkManager(), SIGNAL(changed(QString, QString)), this, SLOT(hideMenu()));
+ connect(rApp->bookmarkManager()->manager(), SIGNAL(changed(QString, QString)), this, SLOT(hideMenu()));
toolBar->setAcceptDrops(true);
toolBar->installEventFilter(this);
toolBar->setShortcutEnabled(false);
if (toolBar->isVisible())
{
- rApp->bookmarkProvider()->fillBookmarkBar(this);
+ rApp->bookmarkManager()->fillBookmarkBar(this);
m_filled = true;
}
}
@@ -186,7 +186,7 @@ KToolBar* BookmarkToolBar::toolBar()
void BookmarkToolBar::contextMenu(const QPoint &point)
{
KBookmarkActionInterface *action = dynamic_cast<KBookmarkActionInterface*>(toolBar()->actionAt(point));
- KBookmark bookmark = rApp->bookmarkProvider()->bookmarkManager()->toolbar();
+ KBookmark bookmark = rApp->bookmarkManager()->manager()->toolbar();
bool nullAction = true;
if (action)
{
@@ -195,8 +195,8 @@ void BookmarkToolBar::contextMenu(const QPoint &point)
}
BookmarksContextMenu menu(bookmark,
- rApp->bookmarkProvider()->bookmarkManager(),
- rApp->bookmarkProvider()->bookmarkOwner(),
+ rApp->bookmarkManager()->manager(),
+ rApp->bookmarkManager()->owner(),
nullAction);
menu.exec(toolBar()->mapToGlobal(point));
}
@@ -252,7 +252,7 @@ bool BookmarkToolBar::eventFilter(QObject *watched, QEvent *event)
{
if (!m_filled)
{
- rApp->bookmarkProvider()->fillBookmarkBar(this);
+ rApp->bookmarkManager()->fillBookmarkBar(this);
m_filled = true;
}
}
@@ -388,7 +388,7 @@ bool BookmarkToolBar::eventFilter(QObject *watched, QEvent *event)
{
QDropEvent *dropEvent = static_cast<QDropEvent*>(event);
KBookmark bookmark;
- KBookmarkGroup root = rApp->bookmarkProvider()->bookmarkManager()->toolbar();
+ KBookmarkGroup root = rApp->bookmarkManager()->manager()->toolbar();
if (m_checkedAction)
{
@@ -399,7 +399,7 @@ bool BookmarkToolBar::eventFilter(QObject *watched, QEvent *event)
if (dropEvent->mimeData()->hasFormat("application/rekonq-bookmark"))
{
QByteArray addresses = dropEvent->mimeData()->data("application/rekonq-bookmark");
- bookmark = rApp->bookmarkProvider()->bookmarkManager()->findByAddress(QString::fromLatin1(addresses.data()));
+ bookmark = rApp->bookmarkManager()->findByAddress(QString::fromLatin1(addresses.data()));
if (bookmark.isNull())
return false;
}
@@ -481,7 +481,7 @@ bool BookmarkToolBar::eventFilter(QObject *watched, QEvent *event)
}
- rApp->bookmarkProvider()->bookmarkManager()->emitChanged();
+ rApp->bookmarkManager()->emitChanged();
}
}
else
@@ -493,7 +493,7 @@ bool BookmarkToolBar::eventFilter(QObject *watched, QEvent *event)
root.moveBookmark(bookmark, KBookmark());
}
- rApp->bookmarkProvider()->bookmarkManager()->emitChanged();
+ rApp->bookmarkManager()->emitChanged();
}
dropEvent->accept();
}