summaryrefslogtreecommitdiffstats
path: root/components/mailviewer/qml/SignaturePart.qml
diff options
context:
space:
mode:
authorSandro Knauß <sknauss@kde.org>2016-10-24 13:02:40 +0200
committerSandro Knauß <sknauss@kde.org>2016-10-24 13:02:40 +0200
commit6aa695939b63fc7370e5eb80ecf7528aea1bd5e1 (patch)
tree91e7951411f541d7b71d64f15a2a38c6bbd7c577 /components/mailviewer/qml/SignaturePart.qml
parent9be2b6515cf538673babda8764219b9af9691f6f (diff)
parenta93a649f34ffa794884019e05c57869bd3bd4672 (diff)
downloadkube-6aa695939b63fc7370e5eb80ecf7528aea1bd5e1.tar.gz
kube-6aa695939b63fc7370e5eb80ecf7528aea1bd5e1.zip
Merge branch 'dev/mimetreeinterface' into develop
Diffstat (limited to 'components/mailviewer/qml/SignaturePart.qml')
-rw-r--r--components/mailviewer/qml/SignaturePart.qml66
1 files changed, 66 insertions, 0 deletions
diff --git a/components/mailviewer/qml/SignaturePart.qml b/components/mailviewer/qml/SignaturePart.qml
new file mode 100644
index 00000000..8a0e33ce
--- /dev/null
+++ b/components/mailviewer/qml/SignaturePart.qml
@@ -0,0 +1,66 @@
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: signature
23 property alias rootIndex: visualModel.rootIndex
24 property bool debug: true
25 height: partListView.height
26 width: parent.width
27
28 MailDataModel {
29 id: visualModel
30 debug: signature.debug
31 model: messageParser.newTree
32 }
33 Column {
34 id: partListView
35 anchors {
36 top: parent.top
37 left: parent.left
38 }
39 width: parent.width
40 spacing: 5
41 Text {
42 width: parent.width
43 visible: signature.debug
44 text: model.type
45 }
46 BorderImage {
47 width: parent.width
48 height: childrenRect.height + 40
49 border { left: 10; top: 10; right: 10; bottom: 10 }
50 horizontalTileMode: BorderImage.Round
51 verticalTileMode: BorderImage.Round
52 source: "securityborders"+ model.securityLevel +".png"
53 ListView {
54 model: visualModel
55 anchors {
56 top: parent.top
57 left: parent.left
58 margins: 20
59 }
60 spacing: 20
61 height: contentHeight
62 width: parent.width - 40
63 }
64 }
65 }
66}