aboutsummaryrefslogtreecommitdiffstats
path: root/attachmenttablemodel.cpp
diff options
context:
space:
mode:
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";