summaryrefslogtreecommitdiffstats
path: root/components/mailviewer/contents/ui/TextContent.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-01 22:42:49 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-02 10:03:57 +0200
commitdd582091bc72ddf61a66d2bc3a3e0ce47f2296b5 (patch)
tree87c75371e5076b70c9cc09157f4cb88ca45a4ad2 /components/mailviewer/contents/ui/TextContent.qml
parent4e416d546a68513f05ef10d41d05e0a9c6d5ecf6 (diff)
downloadkube-dd582091bc72ddf61a66d2bc3a3e0ce47f2296b5.tar.gz
kube-dd582091bc72ddf61a66d2bc3a3e0ce47f2296b5.zip
Mailviewer
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 }