From f0c11eadaa4b77a4e36130b014b62cd6200c8211 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sat, 28 Aug 2010 19:24:19 +0200 Subject: Switching to "KDE" icon cache. While this "brute force" change can be dangerous, it seems let everything work as expected (at least here). It also lets us to retrieve icons when sites are not visited (eg: search engines or old bookmarks) It also contains fixes & improvements for icons management in History & Bookmarks classes. More code to maintain, but more things working.Let's see what'll happen... --- src/history/historymodels.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/history') diff --git a/src/history/historymodels.cpp b/src/history/historymodels.cpp index 9da755c5..a820db0f 100644 --- a/src/history/historymodels.cpp +++ b/src/history/historymodels.cpp @@ -35,6 +35,7 @@ // Local Includes #include "application.h" +#include "iconmanager.h" // KDE Includes #include @@ -144,7 +145,7 @@ QVariant HistoryModel::data(const QModelIndex &index, int role) const case Qt::DecorationRole: if (index.column() == 0) { - return Application::icon(item.url); + return Application::iconManager()->iconForUrl(item.url); } case Qt::ToolTipRole: QString tooltip = ""; -- cgit v1.2.1