summaryrefslogtreecommitdiffstats
path: root/framework/qml/MailViewer.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-29 16:17:04 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-06-04 12:57:04 +0200
commite452707fdfbd61be1e5633b516b653b7337e7865 (patch)
tree1e1d4b48ebf8d381f292436f2ba04b8763edc5de /framework/qml/MailViewer.qml
parent5a1033bdace740799a6e03389bee30e5a4de5d44 (diff)
downloadkube-e452707fdfbd61be1e5633b516b653b7337e7865.tar.gz
kube-e452707fdfbd61be1e5633b516b653b7337e7865.zip
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)
Diffstat (limited to 'framework/qml/MailViewer.qml')
-rw-r--r--framework/qml/MailViewer.qml12
1 files changed, 11 insertions, 1 deletions
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 {
317 anchors.top: body.top 317 anchors.top: body.top
318 anchors.left: body.left 318 anchors.left: body.left
319 anchors.right: body.right 319 anchors.right: body.right
320 model: messageParser.newTree 320 model: messageParser.parts
321 debug: false 321 debug: false
322 } 322 }
323 323
@@ -480,6 +480,16 @@ Rectangle {
480 wrapMode: TextEdit.Wrap 480 wrapMode: TextEdit.Wrap
481 height: implicitHeight 481 height: implicitHeight
482 } 482 }
483 TextEdit {
484 id: rawContent
485 width: parent.width
486 readOnly: true
487 selectByMouse: true
488 textFormat: TextEdit.PlainText
489 wrapMode: TextEdit.Wrap
490 height: implicitHeight
491 text: messageParser.rawContent
492 }
483 } 493 }
484 } 494 }
485 } 495 }