From dd582091bc72ddf61a66d2bc3a3e0ce47f2296b5 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 1 May 2017 22:42:49 +0200 Subject: Mailviewer --- components/mailviewer/contents/ui/TextContent.qml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'components/mailviewer/contents/ui/TextContent.qml') 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 Item { id: textItem + property string content property bool debug: true + property bool embedded: true + property bool isHtml: true + property string type width: partColumn.width height: textColumn.height @@ -45,17 +49,18 @@ Item { readOnly: true selectByMouse: true - text: model.content + text: content wrapMode: Text.WordWrap + textFormat: textItem.isHtml ? Text.RichText : Text.PlainText - color: model.embeded ? Kube.Colors.diabledTextColor : Kube.Colors.textColor + color: embedded ? Kube.Colors.diabledTextColor : Kube.Colors.textColor } //BEGIN debug Text { width: parent.width visible: textItem.debug - text: model.type + text: type } //END debug } -- cgit v1.2.3