summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2017-06-13 09:17:58 +0200
committerMichael Bohlender <michael.bohlender@kdemail.net>2017-06-13 09:17:58 +0200
commit551dc848b30ee9f3984149bc0a205c499b6f9d41 (patch)
tree242d9205bc2fcbe922c100a6aa9e3bce1f9d90ce
parent2cc6ff760c6fe90deacf72c2de857eaa89b73f1a (diff)
downloadkube-551dc848b30ee9f3984149bc0a205c499b6f9d41.tar.gz
kube-551dc848b30ee9f3984149bc0a205c499b6f9d41.zip
better addressee delegate
-rw-r--r--components/kube/contents/ui/AddresseeListEditor.qml27
1 files changed, 25 insertions, 2 deletions
diff --git a/components/kube/contents/ui/AddresseeListEditor.qml b/components/kube/contents/ui/AddresseeListEditor.qml
index 71854b7f..a1fb30d1 100644
--- a/components/kube/contents/ui/AddresseeListEditor.qml
+++ b/components/kube/contents/ui/AddresseeListEditor.qml
@@ -37,6 +37,9 @@ Item {
37 37
38 Column { 38 Column {
39 anchors.fill: parent 39 anchors.fill: parent
40
41 spacing: Kube.Units.smallSpacing
42
40 ListView { 43 ListView {
41 id: listView 44 id: listView
42 anchors { 45 anchors {
@@ -44,8 +47,28 @@ Item {
44 right: parent.right 47 right: parent.right
45 } 48 }
46 height: contentHeight 49 height: contentHeight
47 delegate: Text { 50
48 text: display 51 delegate: Rectangle {
52 height: Kube.Units.gridUnit + Kube.Units.smallSpacing * 3 // 2 for padding, 1 for spacing to the next item
53 width: parent.width
54 color: Kube.Colors.buttonColor
55
56 Kube.Label {
57 anchors {
58 top: parent.top
59 left: parent.left
60 margins: Kube.Units.smallSpacing
61 }
62 text: display
63 }
64
65 Rectangle {
66 anchors.bottom: parent.bottom
67
68 width: parent.width
69 height: Kube.Units.smallSpacing
70 color: Kube.Colors.backgroundColor
71 }
49 } 72 }
50 } 73 }
51 Kube.AutocompleteLineEdit { 74 Kube.AutocompleteLineEdit {