Commit fbff467b authored by Wolfgang Bauer's avatar Wolfgang Bauer

Show icons in the transfer history dialog again

Reenable and port the line that was commented out and add the necessary
include
parent bf10ef80
......@@ -26,6 +26,7 @@
#include <QDebug>
#include <kio/netaccess.h>
#include <kio/global.h>
#include <kio/pixmaploader.h>
#include <KIconLoader>
#include <QIcon>
#include <KLocalizedString>
......@@ -89,9 +90,9 @@ void TransferHistoryItemDelegate::paint(QPainter *painter,
const QAbstractItemModel *model = static_cast <const QAbstractItemModel *> (index.model());
QUrl url(model->data(index, TransferHistoryCategorizedDelegate::RoleUrl).toString());
QString name = url.path().mid(url.path().lastIndexOf("/") + 1);
QIcon icon;//(KIO::pixmapForUrl( TODO: PORT THIS!
// model->data(index, TransferHistoryCategorizedDelegate::RoleDest).toString(),
// 0, KIconLoader::Panel));
QIcon icon(KIO::pixmapForUrl(
model->data(index, TransferHistoryCategorizedDelegate::RoleDest).toUrl(),
0, KIconLoader::Panel));
QString size = KIO::convertSize(model->data(index, TransferHistoryCategorizedDelegate::RoleSize).toInt());
QString date = model->data(index, TransferHistoryCategorizedDelegate::RoleDate).toDate().toString("dd.MM.yyyy");
QString host = url.host();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment