summaryrefslogtreecommitdiffstats
path: root/framework/domain/messageparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'framework/domain/messageparser.cpp')
-rw-r--r--framework/domain/messageparser.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/framework/domain/messageparser.cpp b/framework/domain/messageparser.cpp
index faf17a56..94e16942 100644
--- a/framework/domain/messageparser.cpp
+++ b/framework/domain/messageparser.cpp
@@ -39,10 +39,12 @@ QHash<int, QByteArray> PartModel::roleNames() const
39 QHash<int, QByteArray> roles; 39 QHash<int, QByteArray> roles;
40 roles[Text] = "text"; 40 roles[Text] = "text";
41 roles[IsHtml] = "isHtml"; 41 roles[IsHtml] = "isHtml";
42 roles[IsHidden] = "isHidden";
42 roles[IsEncrypted] = "isEncrypted"; 43 roles[IsEncrypted] = "isEncrypted";
43 roles[IsAttachment] = "isAttachment"; 44 roles[IsAttachment] = "isAttachment";
44 roles[HasContent] = "hasContent"; 45 roles[HasContent] = "hasContent";
45 roles[Type] = "type"; 46 roles[Type] = "type";
47 roles[IsHidden] = "isHidden";
46 return roles; 48 return roles;
47} 49}
48 50
@@ -87,6 +89,9 @@ QVariant PartModel::data(const QModelIndex &index, int role) const
87 return !part->property("htmlContent").toString().isEmpty(); 89 return !part->property("htmlContent").toString().isEmpty();
88 case Type: 90 case Type:
89 return part->metaObject()->className(); 91 return part->metaObject()->className();
92 case IsHidden:
93 return part->property("isHidden").toBool();
94
90 } 95 }
91 } 96 }
92 return QVariant(); 97 return QVariant();