summaryrefslogtreecommitdiffstats
path: root/components/mailviewer/contents/ui/TextContent.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/mailviewer/contents/ui/TextContent.qml')
-rw-r--r--components/mailviewer/contents/ui/TextContent.qml11
1 files changed, 8 insertions, 3 deletions
diff --git a/components/mailviewer/contents/ui/TextContent.qml b/components/mailviewer/contents/ui/TextContent.qml
index ec0dc487..63573d81 100644
--- a/components/mailviewer/contents/ui/TextContent.qml
+++ b/components/mailviewer/contents/ui/TextContent.qml
@@ -23,7 +23,11 @@ import org.kube.framework 1.0 as Kube
23Item { 23Item {
24 id: textItem 24 id: textItem
25 25
26 property string content
26 property bool debug: true 27 property bool debug: true
28 property bool embedded: true
29 property bool isHtml: true
30 property string type
27 31
28 width: partColumn.width 32 width: partColumn.width
29 height: textColumn.height 33 height: textColumn.height
@@ -45,17 +49,18 @@ Item {
45 readOnly: true 49 readOnly: true
46 selectByMouse: true 50 selectByMouse: true
47 51
48 text: model.content 52 text: content
49 wrapMode: Text.WordWrap 53 wrapMode: Text.WordWrap
54 textFormat: textItem.isHtml ? Text.RichText : Text.PlainText
50 55
51 color: model.embeded ? Kube.Colors.diabledTextColor : Kube.Colors.textColor 56 color: embedded ? Kube.Colors.diabledTextColor : Kube.Colors.textColor
52 } 57 }
53 58
54 //BEGIN debug 59 //BEGIN debug
55 Text { 60 Text {
56 width: parent.width 61 width: parent.width
57 visible: textItem.debug 62 visible: textItem.debug
58 text: model.type 63 text: type
59 } 64 }
60 //END debug 65 //END debug
61 } 66 }