summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bookmarks/bookmarkmanager.cpp6
-rw-r--r--src/bookmarks/bookmarkstoolbar.cpp3
-rw-r--r--src/history/historymodels.cpp4
3 files changed, 6 insertions, 7 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;
}
diff --git a/src/history/historymodels.cpp b/src/history/historymodels.cpp
index 76c00a52..9ffc2643 100644
--- a/src/history/historymodels.cpp
+++ b/src/history/historymodels.cpp
@@ -35,7 +35,7 @@
// Local Includes
#include "historymanager.h"
-// #include "iconmanager.h"
+#include "iconmanager.h"
// KDE Includes
#include <KStandardDirs>
@@ -141,7 +141,7 @@ QVariant HistoryModel::data(const QModelIndex &index, int role) const
case Qt::DecorationRole:
if (index.column() == 0)
{
- return QIcon(); //FIXME rApp->iconManager()->iconForUrl(item.url);
+ return IconManager::self()->iconForUrl(item.url);
}
case Qt::ToolTipRole:
QString tooltip = "";