diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-03-19 20:59:33 +0100 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-03-19 20:59:33 +0100 |
commit | dfc0042f5b22bf6aa873b10b25e5b661f1754ecf (patch) | |
tree | 725af4685ecb30a7ab24a7e3a7cf55d8e34351ee /components/package/contents/ui | |
parent | 5b25db7bbfaa907e03fa3ec0b2675c17981b69b0 (diff) | |
download | kube-dfc0042f5b22bf6aa873b10b25e5b661f1754ecf.tar.gz kube-dfc0042f5b22bf6aa873b10b25e5b661f1754ecf.zip |
add firstname and lastname roles to peoplemodel, update ui to display them
Diffstat (limited to 'components/package/contents/ui')
-rw-r--r-- | components/package/contents/ui/People.qml | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/components/package/contents/ui/People.qml b/components/package/contents/ui/People.qml index 9f76aebf..444e2430 100644 --- a/components/package/contents/ui/People.qml +++ b/components/package/contents/ui/People.qml | |||
@@ -125,6 +125,7 @@ Popup { | |||
125 | model: KubeFramework.PeopleModel{} | 125 | model: KubeFramework.PeopleModel{} |
126 | 126 | ||
127 | delegate: Rectangle { | 127 | delegate: Rectangle { |
128 | id: delegateRoot | ||
128 | 129 | ||
129 | height: Kirigami.Units.gridUnit * 3 | 130 | height: Kirigami.Units.gridUnit * 3 |
130 | width: Kirigami.Units.gridUnit * 10 | 131 | width: Kirigami.Units.gridUnit * 10 |
@@ -150,16 +151,33 @@ Popup { | |||
150 | color: "lightgrey" | 151 | color: "lightgrey" |
151 | } | 152 | } |
152 | 153 | ||
153 | Text { | 154 | Column { |
155 | |||
156 | width: parent.width | ||
157 | |||
154 | anchors { | 158 | anchors { |
155 | left: avatarPlaceholder.right | 159 | left: avatarPlaceholder.right |
156 | leftMargin: Kirigami.Units.smallSpacing | 160 | margins: Kirigami.Units.smallSpacing |
157 | verticalCenter: parent.verticalCenter | 161 | verticalCenter: parent.verticalCenter |
158 | } | 162 | } |
159 | 163 | ||
160 | color: Kirigami.Theme.textColor | 164 | Text { |
161 | text: model.name | 165 | width: delegateRoot.width - avatarPlaceholder.width - Kirigami.Units.smallSpacing * 2 |
166 | |||
167 | text: model.firstName | ||
168 | elide: Text.ElideRight | ||
169 | color: Kirigami.Theme.textColor | ||
170 | } | ||
171 | |||
172 | Text { | ||
173 | width: delegateRoot.width - avatarPlaceholder.width - Kirigami.Units.smallSpacing * 2 | ||
174 | |||
175 | text: model.lastName | ||
176 | elide: Text.ElideRight | ||
177 | color: Kirigami.Theme.textColor | ||
178 | } | ||
162 | } | 179 | } |
180 | } | ||
163 | } | 181 | } |
164 | } | 182 | } |
165 | } | 183 | } |