summaryrefslogtreecommitdiff
path: root/src/webview.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/webview.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/webview.cpp')
-rw-r--r--src/webview.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index e524ae24..012f77eb 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -34,8 +34,7 @@
// Local Includes
#include "application.h"
-#include "bookmarkprovider.h"
-#include "bookmarkowner.h"
+#include "bookmarkmanager.h"
#include "iconmanager.h"
#include "mainview.h"
#include "mainwindow.h"
@@ -117,6 +116,7 @@ WebView::~WebView()
preview.save(path);
}
+
void WebView::changeWindowIcon()
{
if (ReKonfig::useFavicon())
@@ -130,6 +130,7 @@ void WebView::changeWindowIcon()
}
}
+
WebPage *WebView::page()
{
WebPage *const page = qobject_cast<WebPage *>(KWebView::page());
@@ -483,10 +484,10 @@ void WebView::dropEvent(QDropEvent *event)
if (event->mimeData()->hasFormat("application/rekonq-bookmark"))
{
QByteArray addresses = event->mimeData()->data("application/rekonq-bookmark");
- KBookmark bookmark = rApp->bookmarkProvider()->bookmarkManager()->findByAddress(QString::fromLatin1(addresses.data()));
+ KBookmark bookmark = rApp->bookmarkManager()->findByAddress(QString::fromLatin1(addresses.data()));
if (bookmark.isGroup())
{
- rApp->bookmarkProvider()->bookmarkOwner()->openFolderinTabs(bookmark.toGroup());
+ rApp->bookmarkManager()->openFolderinTabs(bookmark.toGroup());
}
else
{
@@ -603,8 +604,8 @@ void WebView::bookmarkLink()
KAction *a = qobject_cast<KAction*>(sender());
KUrl url(a->data().toUrl());
- rApp->bookmarkProvider()->rootGroup().addBookmark(url.prettyUrl(), url);
- rApp->bookmarkProvider()->bookmarkManager()->emitChanged();
+ rApp->bookmarkManager()->rootGroup().addBookmark(url.prettyUrl(), url);
+ rApp->bookmarkManager()->emitChanged();
}