From dd582091bc72ddf61a66d2bc3a3e0ce47f2296b5 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 1 May 2017 22:42:49 +0200 Subject: Mailviewer --- components/mailviewer/contents/ui/EncryptionPart.qml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'components/mailviewer/contents/ui/EncryptionPart.qml') 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 Item { id: encryption property alias rootIndex: visualModel.rootIndex - property bool debug: true + property alias model: visualModel.model + property alias debug: visualModel.debug + property variant securityLevel + property variant errorType + property string errorString height: partListView.height width: parent.width MailDataModel { id: visualModel - debug: encryption.debug - model: messageParser.newTree } Column { @@ -45,8 +47,8 @@ Item { text: model.type } Text { - visible: model.errorType || encryption.debug - text: model.errorType + ": " + model.errorString + visible: errorType || encryption.debug + text: errorType + ": " + errorString } BorderImage { width: parent.width @@ -55,7 +57,7 @@ Item { horizontalTileMode: BorderImage.Round verticalTileMode: BorderImage.Round - source: /* "securityborders"+ */ model.securityLevel +".png" + source: /* "securityborders"+ */ securityLevel +".png" ListView { model: visualModel anchors { -- cgit v1.2.3