diff options
Diffstat (limited to 'components/mailviewer/contents/ui/SignaturePart.qml')
-rw-r--r-- | components/mailviewer/contents/ui/SignaturePart.qml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/components/mailviewer/contents/ui/SignaturePart.qml b/components/mailviewer/contents/ui/SignaturePart.qml index 0a2fe525..5e88f963 100644 --- a/components/mailviewer/contents/ui/SignaturePart.qml +++ b/components/mailviewer/contents/ui/SignaturePart.qml | |||
@@ -21,14 +21,15 @@ import QtQuick 2.4 | |||
21 | Item { | 21 | Item { |
22 | id: signature | 22 | id: signature |
23 | property alias rootIndex: visualModel.rootIndex | 23 | property alias rootIndex: visualModel.rootIndex |
24 | property bool debug: true | 24 | property alias model: visualModel.model |
25 | property alias debug: visualModel.debug | ||
26 | property variant securityLevel | ||
27 | property string type | ||
25 | height: partListView.height | 28 | height: partListView.height |
26 | width: parent.width | 29 | width: parent.width |
27 | 30 | ||
28 | MailDataModel { | 31 | MailDataModel { |
29 | id: visualModel | 32 | id: visualModel |
30 | debug: signature.debug | ||
31 | model: messageParser.newTree | ||
32 | } | 33 | } |
33 | Column { | 34 | Column { |
34 | id: partListView | 35 | id: partListView |
@@ -41,7 +42,7 @@ Item { | |||
41 | Text { | 42 | Text { |
42 | width: parent.width | 43 | width: parent.width |
43 | visible: signature.debug | 44 | visible: signature.debug |
44 | text: model.type | 45 | text: type |
45 | } | 46 | } |
46 | BorderImage { | 47 | BorderImage { |
47 | width: parent.width | 48 | width: parent.width |
@@ -49,7 +50,7 @@ Item { | |||
49 | border { left: 5; top: 5; right: 6; bottom: 6 } | 50 | border { left: 5; top: 5; right: 6; bottom: 6 } |
50 | horizontalTileMode: BorderImage.Round | 51 | horizontalTileMode: BorderImage.Round |
51 | verticalTileMode: BorderImage.Round | 52 | verticalTileMode: BorderImage.Round |
52 | source: /* "securityborders"+ */ model.securityLevel +".png" | 53 | source: /* "securityborders"+ */ securityLevel +".png" |
53 | ListView { | 54 | ListView { |
54 | model: visualModel | 55 | model: visualModel |
55 | anchors { | 56 | anchors { |