aboutsummaryrefslogtreecommitdiffstats
path: root/attachmenttablemodel.cpp
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-07-29 12:33:40 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-07-29 12:33:40 +0000
commit4b9ae942606322ad49bd97922737400fff5ea142 (patch)
tree9d7745ccccaee5827d9d2aee2abde3b1502314ae /attachmenttablemodel.cpp
parentadded warning, if file exists in file encryption (diff)
downloadgpg4usb-4b9ae942606322ad49bd97922737400fff5ea142.tar.gz
gpg4usb-4b9ae942606322ad49bd97922737400fff5ea142.zip
decode quoted printable
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@363 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'attachmenttablemodel.cpp')
-rw-r--r--attachmenttablemodel.cpp8
1 files changed, 4 insertions, 4 deletions
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";