diff options
Diffstat (limited to 'components/mailviewer/contents/ui/TextContent.qml')
-rw-r--r-- | components/mailviewer/contents/ui/TextContent.qml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/mailviewer/contents/ui/TextContent.qml b/components/mailviewer/contents/ui/TextContent.qml index 63573d81..90442b8f 100644 --- a/components/mailviewer/contents/ui/TextContent.qml +++ b/components/mailviewer/contents/ui/TextContent.qml | |||
@@ -26,7 +26,6 @@ Item { | |||
26 | property string content | 26 | property string content |
27 | property bool debug: true | 27 | property bool debug: true |
28 | property bool embedded: true | 28 | property bool embedded: true |
29 | property bool isHtml: true | ||
30 | property string type | 29 | property string type |
31 | 30 | ||
32 | width: partColumn.width | 31 | width: partColumn.width |
@@ -43,17 +42,18 @@ Item { | |||
43 | width: parent.width | 42 | width: parent.width |
44 | spacing: 5 | 43 | spacing: 5 |
45 | 44 | ||
46 | TextEdit { | 45 | TextEdit { |
47 | width: parent.width | 46 | width: parent.width |
48 | 47 | ||
49 | readOnly: true | 48 | readOnly: true |
50 | selectByMouse: true | 49 | selectByMouse: true |
51 | 50 | ||
52 | text: content | 51 | text: content |
53 | wrapMode: Text.WordWrap | 52 | wrapMode: TextEdit.Wrap |
54 | textFormat: textItem.isHtml ? Text.RichText : Text.PlainText | 53 | textFormat: Text.RichText |
55 | 54 | ||
56 | color: embedded ? Kube.Colors.diabledTextColor : Kube.Colors.textColor | 55 | color: embedded ? Kube.Colors.disabledTextColor : Kube.Colors.textColor |
56 | onLinkActivated: Qt.openUrlExternally(link) | ||
57 | } | 57 | } |
58 | 58 | ||
59 | //BEGIN debug | 59 | //BEGIN debug |