diff options
author | Jon Ander Peñalba <jonan88@gmail.com> | 2010-09-02 18:10:46 +0200 |
---|---|---|
committer | Jon Ander Peñalba <jonan88@gmail.com> | 2010-09-03 08:27:20 +0200 |
commit | d0ab264b8aa5f5c7fcb21dd172a1f3f5b777356b (patch) | |
tree | f89adefce79c8bf0d5cde2e1bc015a443ccb39fe /src/bookmarks/bookmarkstreemodel.cpp | |
parent | This commit hacks a merge request, to fast fixing a crash calling the bk toolbar (diff) | |
download | rekonq-d0ab264b8aa5f5c7fcb21dd172a1f3f5b777356b.tar.xz |
Include clean-up in the big src directory
Diffstat (limited to 'src/bookmarks/bookmarkstreemodel.cpp')
-rw-r--r-- | src/bookmarks/bookmarkstreemodel.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bookmarks/bookmarkstreemodel.cpp b/src/bookmarks/bookmarkstreemodel.cpp index 796208a9..8d702fb9 100644 --- a/src/bookmarks/bookmarkstreemodel.cpp +++ b/src/bookmarks/bookmarkstreemodel.cpp @@ -37,6 +37,7 @@ // KDE Includes #include <KBookmarkManager> #include <KLocalizedString> +#include <KIcon> // Qt Includes #include <QtCore/QMimeData> @@ -68,14 +69,14 @@ QVariant BtmItem::data(int role) const // NOTE // this should be: // return KIcon(m_kbm.icon()); - // but I cannot let it work :( - // I really cannot understand how let this work properly... + // but I cannot let it work :( + // I really cannot understand how let this work properly... if (m_kbm.isGroup() || m_kbm.isSeparator()) return KIcon(m_kbm.icon()); else return Application::iconManager()->iconForUrl(KUrl(m_kbm.url())); } - + if (role == Qt::UserRole) return m_kbm.url(); |