Changeset View
Changeset View
Standalone View
Standalone View
mimetreeparser/src/bodyformatter/textplain.cpp
Show All 33 Lines | |||||
34 | const Interface::BodyPartFormatter *TextPlainBodyPartFormatter::create() | 34 | const Interface::BodyPartFormatter *TextPlainBodyPartFormatter::create() | ||
35 | { | 35 | { | ||
36 | if (!self) { | 36 | if (!self) { | ||
37 | self = new TextPlainBodyPartFormatter(); | 37 | self = new TextPlainBodyPartFormatter(); | ||
38 | } | 38 | } | ||
39 | return self; | 39 | return self; | ||
40 | } | 40 | } | ||
41 | 41 | | |||
42 | Interface::MessagePart::Ptr TextPlainBodyPartFormatter::process(Interface::BodyPart &part) const | 42 | MessagePart::Ptr TextPlainBodyPartFormatter::process(Interface::BodyPart &part) const | ||
43 | { | 43 | { | ||
44 | KMime::Content *node = part.content(); | 44 | KMime::Content *node = part.content(); | ||
45 | const bool isFirstTextPart = (node->topLevel()->textContent() == node); | 45 | const bool isFirstTextPart = (node->topLevel()->textContent() == node); | ||
46 | 46 | | |||
47 | QString label = NodeHelper::fileName(node); | 47 | QString label = NodeHelper::fileName(node); | ||
48 | 48 | | |||
49 | const bool bDrawFrame = !isFirstTextPart | 49 | const bool bDrawFrame = !isFirstTextPart | ||
50 | && !part.objectTreeParser()->showOnlyOneMimePart() | 50 | && !part.objectTreeParser()->showOnlyOneMimePart() | ||
Show All 17 Lines |