From 4b9ae942606322ad49bd97922737400fff5ea142 Mon Sep 17 00:00:00 2001 From: ubbo Date: Thu, 29 Jul 2010 12:33:40 +0000 Subject: decode quoted printable git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@363 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- attachmenttablemodel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'attachmenttablemodel.cpp') diff --git a/attachmenttablemodel.cpp b/attachmenttablemodel.cpp index 2ef3821..9389b7e 100644 --- a/attachmenttablemodel.cpp +++ b/attachmenttablemodel.cpp @@ -77,9 +77,9 @@ QVariant AttachmentTableModel::data(const QModelIndex &index, int role) const MimePart mp = listOfMimeparts.at(index.row()); if (index.column() == 0) - return mp.getParam("Content-Type", "name"); + return mp.header.getParam("Content-Type", "name"); if (index.column() == 1) - return mp.getValue("Content-Type"); + return mp.header.getValue("Content-Type"); } @@ -88,10 +88,10 @@ QVariant AttachmentTableModel::data(const QModelIndex &index, int role) const if (role == Qt::DecorationRole && index.column() == 0) { MimePart mp = listOfMimeparts.at(index.row()); QString icon; - if (mp.getValue("Content-Type").startsWith("image")) { + if (mp.header.getValue("Content-Type").startsWith("image")) { icon = iconPath + "/mimetypes/image-x-generic.png"; } else { - icon = mp.getValue("Content-Type").replace("/", "-"); + icon = mp.header.getValue("Content-Type").replace("/", "-"); icon = iconPath + "/mimetypes/" + icon + ".png"; } if (!QFile::exists(icon)) icon = iconPath + "/mimetypes/unknown.png"; -- cgit v1.2.3