diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-07 22:17:12 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-07 22:17:12 +0200 |
commit | 23132b14e9bf3e1ec1f7720bbe28a2051508bd0f (patch) | |
tree | c5989b95fb805b7b770453a01fbff74fc76e43f0 /components/mailviewer/contents/ui/MailPart.qml | |
parent | e683f8ebdadd5bfc5a32d6be126c46ec2c3a26e5 (diff) | |
download | kube-23132b14e9bf3e1ec1f7720bbe28a2051508bd0f.tar.gz kube-23132b14e9bf3e1ec1f7720bbe28a2051508bd0f.zip |
Encapsulated parts
Diffstat (limited to 'components/mailviewer/contents/ui/MailPart.qml')
-rw-r--r-- | components/mailviewer/contents/ui/MailPart.qml | 41 |
1 files changed, 33 insertions, 8 deletions
diff --git a/components/mailviewer/contents/ui/MailPart.qml b/components/mailviewer/contents/ui/MailPart.qml index bf534e85..7ff426e9 100644 --- a/components/mailviewer/contents/ui/MailPart.qml +++ b/components/mailviewer/contents/ui/MailPart.qml | |||
@@ -18,29 +18,54 @@ | |||
18 | 18 | ||
19 | import QtQuick 2.4 | 19 | import QtQuick 2.4 |
20 | 20 | ||
21 | import org.kube.framework 1.0 as Kube | ||
22 | |||
21 | Item { | 23 | Item { |
22 | id: root | 24 | id: root |
23 | property alias rootIndex: visualModel.rootIndex | 25 | property alias rootIndex: visualModel.rootIndex |
24 | property alias model: visualModel.model | 26 | property alias model: visualModel.model |
25 | property alias debug: visualModel.debug | 27 | property variant sender |
26 | height: partListView.height + 10 | 28 | property variant date |
27 | width: parent.width | 29 | height: childrenRect.height |
28 | 30 | ||
29 | MailDataModel { | 31 | MailDataModel { |
30 | id: visualModel | 32 | id: visualModel |
31 | } | 33 | } |
32 | 34 | ||
35 | Rectangle { | ||
36 | id: border | ||
37 | anchors { | ||
38 | top: parent.top | ||
39 | left: parent.left | ||
40 | leftMargin: Kube.Units.smallSpacing | ||
41 | } | ||
42 | color: "lightgrey" | ||
43 | height: partListView.height | ||
44 | width: Kube.Units.smallSpacing | ||
45 | } | ||
46 | |||
47 | Text { | ||
48 | id: sender | ||
49 | anchors { | ||
50 | left: border.right | ||
51 | leftMargin: Kube.Units.smallSpacing | ||
52 | } | ||
53 | |||
54 | text: "sent by " + root.sender + " on " + root.date | ||
55 | color: "grey" | ||
56 | } | ||
33 | ListView { | 57 | ListView { |
34 | id: partListView | 58 | id: partListView |
35 | model: visualModel | 59 | model: visualModel |
36 | anchors { | 60 | anchors { |
37 | top: parent.top | 61 | top: sender.bottom |
38 | left: parent.left | 62 | left: border.right |
39 | margins: 5 | 63 | margins: Kube.Units.smallSpacing |
64 | leftMargin: Kube.Units.smallSpacing | ||
40 | } | 65 | } |
41 | spacing: 5 | 66 | spacing: 7 |
42 | height: contentHeight | 67 | height: contentHeight |
43 | width: parent.width - 10 | 68 | width: parent.width - Kube.Units.smallSpacing * 3 |
44 | interactive: false | 69 | interactive: false |
45 | } | 70 | } |
46 | } | 71 | } |