summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2016-09-05 14:13:07 +0200
committerMichael Bohlender <michael.bohlender@kdemail.net>2016-09-05 14:13:07 +0200
commitf0fc0f9720610adde4e7f08625fdf3fe81de8de2 (patch)
tree3caa369fb23039738fbdc0fd5476d5164d000bfe /components
parenteb1664326e69757b18abd5fef8d22c9a328a2d28 (diff)
downloadkube-f0fc0f9720610adde4e7f08625fdf3fe81de8de2.tar.gz
kube-f0fc0f9720610adde4e7f08625fdf3fe81de8de2.zip
adjust outbox height to number of mails in outbox
Diffstat (limited to 'components')
-rw-r--r--components/package/contents/ui/Outbox.qml16
1 files changed, 12 insertions, 4 deletions
diff --git a/components/package/contents/ui/Outbox.qml b/components/package/contents/ui/Outbox.qml
index 4baa0eae..ff049683 100644
--- a/components/package/contents/ui/Outbox.qml
+++ b/components/package/contents/ui/Outbox.qml
@@ -38,13 +38,15 @@ ToolButton {
38 Rectangle { 38 Rectangle {
39 id: dialog 39 id: dialog
40 40
41 property int modelCount: 5 //FIXME replace with actual model
42
41 anchors { 43 anchors {
42 top: parent.bottom 44 top: parent.bottom
43 horizontalCenter: parent.horizontalCenter 45 horizontalCenter: parent.horizontalCenter
44 } 46 }
45 47
46 height: Kirigami.Units.gridUnit * 15 48 height: modelCount * Kirigami.Units.gridUnit * 3 + 10//scrollView.height height: Kirigami.Units.gridUnit * 15
47 width: Kirigami.Units.gridUnit * 12 49 width: Kirigami.Units.gridUnit * 12
48 50
49 color: Kirigami.Theme.backgroundColor 51 color: Kirigami.Theme.backgroundColor
50 border.width: 1 52 border.width: 1
@@ -55,16 +57,22 @@ ToolButton {
55 57
56 //BEGIN Dialog Content 58 //BEGIN Dialog Content
57 ScrollView { 59 ScrollView {
60 id: scrollView
61
58 anchors { 62 anchors {
59 fill: parent 63 fill: parent
60 margins: 1 64 margins: 5
61 } 65 }
66
62 ListView { 67 ListView {
63 id: listView 68 id: listView
64 69
65 model: 3 70 model: 5
66 71
67 delegate: Kirigami.AbstractListItem { 72 delegate: Kirigami.AbstractListItem {
73
74 height: Kirigami.Units.gridUnit * 3
75
68 Kirigami.Label { 76 Kirigami.Label {
69 anchors.centerIn: parent 77 anchors.centerIn: parent
70 text: "Subjext subxetson" 78 text: "Subjext subxetson"