summaryrefslogtreecommitdiffstats
path: root/components/mailviewer/contents/ui/EncryptionPart.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/mailviewer/contents/ui/EncryptionPart.qml')
-rw-r--r--components/mailviewer/contents/ui/EncryptionPart.qml14
1 files changed, 8 insertions, 6 deletions
diff --git a/components/mailviewer/contents/ui/EncryptionPart.qml b/components/mailviewer/contents/ui/EncryptionPart.qml
index 058c9af7..e72c30f9 100644
--- a/components/mailviewer/contents/ui/EncryptionPart.qml
+++ b/components/mailviewer/contents/ui/EncryptionPart.qml
@@ -21,14 +21,16 @@ import QtQuick 2.4
21Item { 21Item {
22 id: encryption 22 id: encryption
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 variant errorType
28 property string errorString
25 height: partListView.height 29 height: partListView.height
26 width: parent.width 30 width: parent.width
27 31
28 MailDataModel { 32 MailDataModel {
29 id: visualModel 33 id: visualModel
30 debug: encryption.debug
31 model: messageParser.newTree
32 } 34 }
33 35
34 Column { 36 Column {
@@ -45,8 +47,8 @@ Item {
45 text: model.type 47 text: model.type
46 } 48 }
47 Text { 49 Text {
48 visible: model.errorType || encryption.debug 50 visible: errorType || encryption.debug
49 text: model.errorType + ": " + model.errorString 51 text: errorType + ": " + errorString
50 } 52 }
51 BorderImage { 53 BorderImage {
52 width: parent.width 54 width: parent.width
@@ -55,7 +57,7 @@ Item {
55 horizontalTileMode: BorderImage.Round 57 horizontalTileMode: BorderImage.Round
56 verticalTileMode: BorderImage.Round 58 verticalTileMode: BorderImage.Round
57 59
58 source: /* "securityborders"+ */ model.securityLevel +".png" 60 source: /* "securityborders"+ */ securityLevel +".png"
59 ListView { 61 ListView {
60 model: visualModel 62 model: visualModel
61 anchors { 63 anchors {