summaryrefslogtreecommitdiff
path: root/src/bookmarks
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-07-31 18:32:38 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:04 +0100
commit0e5ee7473e7fe37107130e151499e97521c14356 (patch)
tree5b01bc8827f96cb70738338cadecf560539e2dd5 /src/bookmarks
parentIconManager restore (diff)
downloadrekonq-0e5ee7473e7fe37107130e151499e97521c14356.tar.xz
Fix places where IconManager was needed...
Diffstat (limited to 'src/bookmarks')
-rw-r--r--src/bookmarks/bookmarkmanager.cpp6
-rw-r--r--src/bookmarks/bookmarkstoolbar.cpp3
2 files changed, 4 insertions, 5 deletions
diff --git a/src/bookmarks/bookmarkmanager.cpp b/src/bookmarks/bookmarkmanager.cpp
index 25c78044..5075820d 100644
--- a/src/bookmarks/bookmarkmanager.cpp
+++ b/src/bookmarks/bookmarkmanager.cpp
@@ -35,9 +35,7 @@
#include "application.h"
#include "bookmarkstoolbar.h"
#include "bookmarkowner.h"
-// #include "iconmanager.h"
-// #include "mainwindow.h"
-// #include "webtab.h"
+#include "iconmanager.h"
// KDE Includes
#include <KActionCollection>
@@ -201,7 +199,7 @@ void BookmarkManager::fillBookmarkBar(BookmarkToolBar *toolBar)
else
{
KBookmarkAction *action = new KBookmarkAction(bookmark, m_owner, this);
-// FIXME action->setIcon(rApp->iconManager()->iconForUrl(KUrl(bookmark.url())));
+ action->setIcon(IconManager::self()->iconForUrl(KUrl(bookmark.url())));
connect(action, SIGNAL(hovered()), toolBar, SLOT(actionHovered()));
toolBar->toolBar()->addAction(action);
toolBar->toolBar()->widgetForAction(action)->installEventFilter(toolBar);
diff --git a/src/bookmarks/bookmarkstoolbar.cpp b/src/bookmarks/bookmarkstoolbar.cpp
index cb3fe382..27ccaec4 100644
--- a/src/bookmarks/bookmarkstoolbar.cpp
+++ b/src/bookmarks/bookmarkstoolbar.cpp
@@ -34,6 +34,7 @@
#include "bookmarkmanager.h"
#include "bookmarkowner.h"
+#include "iconmanager.h"
#include "webwindow.h"
// Qt Includes
@@ -92,7 +93,7 @@ QAction * BookmarkMenu::actionForBookmark(const KBookmark &bookmark)
else
{
KBookmarkAction *action = new KBookmarkAction(bookmark, owner(), this);
-// FIXME action->setIcon(rApp->iconManager()->iconForUrl(KUrl(bookmark.url())));
+ action->setIcon(IconManager::self()->iconForUrl(KUrl(bookmark.url())));
connect(action, SIGNAL(hovered()), this, SLOT(actionHovered()));
return action;
}