summaryrefslogtreecommitdiffstats
path: root/components/mailviewer/contents/ui/EncryptionPart.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 /components/mailviewer/contents/ui/EncryptionPart.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 'components/mailviewer/contents/ui/EncryptionPart.qml')
-rw-r--r--components/mailviewer/contents/ui/EncryptionPart.qml77
1 files changed, 0 insertions, 77 deletions
diff --git a/components/mailviewer/contents/ui/EncryptionPart.qml b/components/mailviewer/contents/ui/EncryptionPart.qml
deleted file mode 100644
index e72c30f9..00000000
--- a/components/mailviewer/contents/ui/EncryptionPart.qml
+++ /dev/null
@@ -1,77 +0,0 @@
1/*
2 Copyright (C) 2016 Michael Bohlender, <michael.bohlender@kdemail.net>
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17*/
18
19import QtQuick 2.4
20
21Item {
22 id: encryption
23 property alias rootIndex: visualModel.rootIndex
24 property alias model: visualModel.model
25 property alias debug: visualModel.debug
26 property variant securityLevel
27 property variant errorType
28 property string errorString
29 height: partListView.height
30 width: parent.width
31
32 MailDataModel {
33 id: visualModel
34 }
35
36 Column {
37 id: partListView
38 anchors {
39 top: parent.top
40 left: parent.left
41 }
42 width: parent.width
43 spacing: 5
44 Text {
45 width: parent.width
46 visible: encryption.debug
47 text: model.type
48 }
49 Text {
50 visible: errorType || encryption.debug
51 text: errorType + ": " + errorString
52 }
53 BorderImage {
54 width: parent.width
55 height: childrenRect.height + 40
56 border { left: 5; top: 5; right: 6; bottom: 6 }
57 horizontalTileMode: BorderImage.Round
58 verticalTileMode: BorderImage.Round
59
60 source: /* "securityborders"+ */ securityLevel +".png"
61 ListView {
62 model: visualModel
63 anchors {
64 top: parent.top
65 left: parent.left
66 margins: 20
67 }
68 height: contentHeight
69 width: parent.width - 40
70
71 spacing: 20
72
73 interactive: false
74 }
75 }
76 }
77}