From e1f5db747bad9cc0ab738650a8e0b52c8cfcab57 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 1 Sep 2010 12:44:23 +0200 Subject: Fix bk icons. The fix is hackish but it's the best thing I could achieve.. --- src/bookmarks/bookmarkstreemodel.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/bookmarks/bookmarkstreemodel.cpp') diff --git a/src/bookmarks/bookmarkstreemodel.cpp b/src/bookmarks/bookmarkstreemodel.cpp index ba106ca5..254a914f 100644 --- a/src/bookmarks/bookmarkstreemodel.cpp +++ b/src/bookmarks/bookmarkstreemodel.cpp @@ -31,6 +31,7 @@ // Local Includes #include "application.h" #include "bookmarkprovider.h" +#include "iconmanager.h" // KDE Includes #include @@ -63,8 +64,12 @@ QVariant BtmItem::data(int role) const if (role == Qt::DecorationRole) { - kDebug() << "BOOKMARK ICON: " << m_kbm.icon(); - return KIcon(m_kbm.icon()); + // NOTE + // this should be: + // return KIcon(m_kbm.icon()); + // but I cannot let it work :( + // I really cannot understand how let this work properly... + return Application::iconManager()->iconForUrl(KUrl(m_kbm.url())); } if (role == Qt::UserRole) -- cgit v1.2.1