summaryrefslogtreecommitdiff
path: root/src/bookmarks/bookmarkstreemodel.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-09-01 12:44:23 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-09-01 12:44:23 +0200
commite1f5db747bad9cc0ab738650a8e0b52c8cfcab57 (patch)
tree7d19e3f1fd91d17da3aa885eb4fd1f17d39538e3 /src/bookmarks/bookmarkstreemodel.cpp
parentRestore old bookmarks file management (diff)
downloadrekonq-e1f5db747bad9cc0ab738650a8e0b52c8cfcab57.tar.xz
Fix bk icons.
The fix is hackish but it's the best thing I could achieve..
Diffstat (limited to 'src/bookmarks/bookmarkstreemodel.cpp')
-rw-r--r--src/bookmarks/bookmarkstreemodel.cpp9
1 files changed, 7 insertions, 2 deletions
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 <KBookmarkManager>
@@ -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)