From e452707fdfbd61be1e5633b516b653b7337e7865 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 29 May 2017 16:17:04 +0200 Subject: Reduced the messagetreeparser to aproximately what we actually require While in a much more managable state it's still not pretty. However, further refactoring can now gradually happen as we need to do further work on it. Things that should happen eventually: * Simplify the logic that creates the messageparts (we don't need the whole formatter plugin complexity) * Get rid of the nodehelper (let the parts hold the necessary data) * Get rid of partmetadata (let the part handleit) --- framework/qml/MailViewer.qml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'framework/qml') diff --git a/framework/qml/MailViewer.qml b/framework/qml/MailViewer.qml index b475f591..ad1ad734 100644 --- a/framework/qml/MailViewer.qml +++ b/framework/qml/MailViewer.qml @@ -317,7 +317,7 @@ Rectangle { anchors.top: body.top anchors.left: body.left anchors.right: body.right - model: messageParser.newTree + model: messageParser.parts debug: false } @@ -480,6 +480,16 @@ Rectangle { wrapMode: TextEdit.Wrap height: implicitHeight } + TextEdit { + id: rawContent + width: parent.width + readOnly: true + selectByMouse: true + textFormat: TextEdit.PlainText + wrapMode: TextEdit.Wrap + height: implicitHeight + text: messageParser.rawContent + } } } } -- cgit v1.2.3