summaryrefslogtreecommitdiffstats
path: root/components/package/contents/ui
diff options
context:
space:
mode:
Diffstat (limited to 'components/package/contents/ui')
-rw-r--r--components/package/contents/ui/MailViewer.qml31
1 files changed, 23 insertions, 8 deletions
diff --git a/components/package/contents/ui/MailViewer.qml b/components/package/contents/ui/MailViewer.qml
index 5365be66..347f30de 100644
--- a/components/package/contents/ui/MailViewer.qml
+++ b/components/package/contents/ui/MailViewer.qml
@@ -27,8 +27,8 @@ Item {
27 id: root 27 id: root
28 property variant message; 28 property variant message;
29 property string html; 29 property string html;
30 property bool enablePartTreeView : false 30 property bool enablePartTreeView : true;
31 property int desiredHeight: enablePartTreeView ? topPartLoader.height+450 : topPartLoader.height; 31 property int desiredHeight: enablePartTreeView ? topPartLoader.height + dummyApp.height + mailStructure.height + 50 : topPartLoader.height + dummyApp.height + 50;
32 32
33 Rectangle { 33 Rectangle {
34 id: rootRectangle 34 id: rootRectangle
@@ -41,6 +41,19 @@ Item {
41 verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff 41 verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff
42 Column { 42 Column {
43 spacing:2 43 spacing:2
44 Text {
45 text: "New Mailviewer:"
46 color: "blue"
47 }
48 DummyApp {
49 id: dummyApp
50 height: 800
51 width: rootRectangle.width
52 }
53 Text {
54 text: "Old Mailviewer:"
55 color: "blue"
56 }
44 MessagePartTree { 57 MessagePartTree {
45 id: topPartLoader 58 id: topPartLoader
46 // width: rootRectangle.width 59 // width: rootRectangle.width
@@ -48,6 +61,7 @@ Item {
48 width: topPartLoader.contentWidth >= rootRectangle.width ? topPartLoader.contentWidth : rootRectangle.width 61 width: topPartLoader.contentWidth >= rootRectangle.width ? topPartLoader.contentWidth : rootRectangle.width
49 } 62 }
50 TreeView { 63 TreeView {
64 id: mailStructure
51 visible: enablePartTreeView 65 visible: enablePartTreeView
52 width: rootRectangle.width 66 width: rootRectangle.width
53 height: 400 67 height: 400
@@ -57,16 +71,17 @@ Item {
57 width: 300 71 width: 300
58 } 72 }
59 TableViewColumn { 73 TableViewColumn {
60 role: "isHidden" 74 role: "embeded"
61 title: "Hidden" 75 title: "Embeded"
62 width: 60 76 width: 60
63 } 77 }
64 TableViewColumn { 78 TableViewColumn {
65 role: "text" 79 role: "content"
66 title: "Text" 80 title: "Content"
67 width: 600 81 width: 200
68 } 82 }
69 model: messageParser.partTree 83 //model: messageParser.partTree
84 model: messageParser.newTree
70 } 85 }
71 } 86 }
72 } 87 }