diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-04-19 13:49:57 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-04-19 13:49:57 +0200 |
commit | 9dedc33e1d077752627a0e9aeab03d48b9fb4c00 (patch) | |
tree | a63cdaa77f31bf42fdea9e4a83193432ea3d8b54 | |
parent | 9bbb39c545b4963c4230c14d50beb276bfd44e2d (diff) | |
download | kube-9dedc33e1d077752627a0e9aeab03d48b9fb4c00.tar.gz kube-9dedc33e1d077752627a0e9aeab03d48b9fb4c00.zip |
use kube controls in people
-rw-r--r-- | framework/qml/People.qml | 50 |
1 files changed, 23 insertions, 27 deletions
diff --git a/framework/qml/People.qml b/framework/qml/People.qml index 1a2f15b2..d51c9d80 100644 --- a/framework/qml/People.qml +++ b/framework/qml/People.qml | |||
@@ -52,14 +52,13 @@ Kube.Popup { | |||
52 | visible: stack. depth > 1 | 52 | visible: stack. depth > 1 |
53 | } | 53 | } |
54 | 54 | ||
55 | TextField { | 55 | Kube.TextField { |
56 | id: searchBar | 56 | id: searchBar |
57 | 57 | ||
58 | anchors.horizontalCenter: parent.horizontalCenter | 58 | anchors.horizontalCenter: parent.horizontalCenter |
59 | width: parent.width * 0.5 | ||
59 | 60 | ||
60 | placeholderText: "Search..." | 61 | placeholderText: "Search..." |
61 | |||
62 | width: parent.width * 0.5 | ||
63 | } | 62 | } |
64 | 63 | ||
65 | Controls.ToolButton { | 64 | Controls.ToolButton { |
@@ -163,20 +162,18 @@ Kube.Popup { | |||
163 | verticalCenter: parent.verticalCenter | 162 | verticalCenter: parent.verticalCenter |
164 | } | 163 | } |
165 | 164 | ||
166 | Text { | 165 | Kube.Label { |
167 | width: delegateRoot.width - avatarPlaceholder.width - Kube.Units.smallSpacing * 2 | 166 | width: delegateRoot.width - avatarPlaceholder.width - Kube.Units.smallSpacing * 2 |
168 | 167 | ||
169 | text: model.firstName | 168 | text: model.firstName |
170 | elide: Text.ElideRight | 169 | elide: Text.ElideRight |
171 | color: Kube.Colors.textColor | ||
172 | } | 170 | } |
173 | 171 | ||
174 | Text { | 172 | Kube.Label { |
175 | width: delegateRoot.width - avatarPlaceholder.width - Kube.Units.smallSpacing * 2 | 173 | width: delegateRoot.width - avatarPlaceholder.width - Kube.Units.smallSpacing * 2 |
176 | 174 | ||
177 | text: model.lastName | 175 | text: model.lastName |
178 | elide: Text.ElideRight | 176 | elide: Text.ElideRight |
179 | color: Kube.Colors.textColor | ||
180 | } | 177 | } |
181 | } | 178 | } |
182 | } | 179 | } |
@@ -247,6 +244,7 @@ Kube.Popup { | |||
247 | color: "lightgrey" | 244 | color: "lightgrey" |
248 | } | 245 | } |
249 | 246 | ||
247 | //TODO replace with Kube.Heading once it is there | ||
250 | Kirigami.Heading { | 248 | Kirigami.Heading { |
251 | id: nameLabel | 249 | id: nameLabel |
252 | 250 | ||
@@ -256,10 +254,10 @@ Kube.Popup { | |||
256 | leftMargin: Kube.Units.largeSpacing | 254 | leftMargin: Kube.Units.largeSpacing |
257 | } | 255 | } |
258 | 256 | ||
259 | text: contactController.name //"Michael Tester" | 257 | text: contactController.name |
260 | } | 258 | } |
261 | 259 | ||
262 | Text { | 260 | Kube.Label { |
263 | id: jobTitle | 261 | id: jobTitle |
264 | 262 | ||
265 | anchors { | 263 | anchors { |
@@ -295,7 +293,7 @@ Kube.Popup { | |||
295 | color: "lightgrey" | 293 | color: "lightgrey" |
296 | } | 294 | } |
297 | 295 | ||
298 | Text { | 296 | Kube.Label { |
299 | anchors { | 297 | anchors { |
300 | verticalCenter: av.verticalCenter | 298 | verticalCenter: av.verticalCenter |
301 | left: av.right | 299 | left: av.right |
@@ -303,8 +301,6 @@ Kube.Popup { | |||
303 | } | 301 | } |
304 | 302 | ||
305 | text: "Sauerkraut AG" | 303 | text: "Sauerkraut AG" |
306 | |||
307 | color: Kube.Colors.textColor | ||
308 | } | 304 | } |
309 | } | 305 | } |
310 | } | 306 | } |
@@ -320,23 +316,23 @@ Kube.Popup { | |||
320 | 316 | ||
321 | Row { | 317 | Row { |
322 | spacing: Kube.Units.smallSpacing | 318 | spacing: Kube.Units.smallSpacing |
323 | Text { text: "(main)" } | 319 | Kube.Label { text: "(main)" } |
324 | Text { text: modelData ; color: Kube.Colors.highlightColor } | 320 | Kube.Label { text: modelData ; color: Kube.Colors.highlightColor } |
325 | Item { width: Kube.Units.smallSpacing; height: 1 } | 321 | Item { width: Kube.Units.smallSpacing; height: 1 } |
326 | } | 322 | } |
327 | } | 323 | } |
328 | 324 | ||
329 | Row { | 325 | Row { |
330 | spacing: Kube.Units.smallSpacing | 326 | spacing: Kube.Units.smallSpacing |
331 | Text { text: "(alias)"} | 327 | Kube.Label { text: "(alias)"} |
332 | Text { text: "test.testerson@gmail.com"; color: Kube.Colors.highlightColor } | 328 | Kube.Label { text: "test.testerson@gmail.com"; color: Kube.Colors.highlightColor } |
333 | Item { width: Kube.Units.smallSpacing; height: 1 } | 329 | Item { width: Kube.Units.smallSpacing; height: 1 } |
334 | } | 330 | } |
335 | 331 | ||
336 | Row { | 332 | Row { |
337 | spacing: Kube.Units.smallSpacing | 333 | spacing: Kube.Units.smallSpacing |
338 | Text { text: "(private)"} | 334 | Kube.Label { text: "(private)"} |
339 | Text { text: "test@gmail.com"; color: Kube.Colors.highlightColor } | 335 | Kube.Label { text: "test@gmail.com"; color: Kube.Colors.highlightColor } |
340 | Item { width: Kube.Units.smallSpacing; height: 1 } | 336 | Item { width: Kube.Units.smallSpacing; height: 1 } |
341 | } | 337 | } |
342 | } | 338 | } |
@@ -349,20 +345,20 @@ Kube.Popup { | |||
349 | 345 | ||
350 | Row { | 346 | Row { |
351 | spacing: Kube.Units.smallSpacing | 347 | spacing: Kube.Units.smallSpacing |
352 | Text { text: "(inhouse)"} | 348 | Kube.Label { text: "(inhouse)"} |
353 | Text { text: "+49812324932"; opacity: 0.6 } | 349 | Kube.Label { text: "+49812324932"; opacity: 0.6 } |
354 | Item { width: Kube.Units.smallSpacing; height: 1 } | 350 | Item { width: Kube.Units.smallSpacing; height: 1 } |
355 | } | 351 | } |
356 | Row { | 352 | Row { |
357 | spacing: Kube.Units.smallSpacing | 353 | spacing: Kube.Units.smallSpacing |
358 | Text { text: "(mobile)"} | 354 | Kube.Label { text: "(mobile)"} |
359 | Text { text: "+49812324932"; opacity: 0.6 } | 355 | Kube.Label { text: "+49812324932"; opacity: 0.6 } |
360 | Item { width: Kube.Units.smallSpacing; height: 1 } | 356 | Item { width: Kube.Units.smallSpacing; height: 1 } |
361 | } | 357 | } |
362 | Row { | 358 | Row { |
363 | spacing: Kube.Units.smallSpacing | 359 | spacing: Kube.Units.smallSpacing |
364 | Text { text: "(private)"} | 360 | Kube.Label { text: "(private)"} |
365 | Text { text: "+49812324932"; opacity: 0.6 } | 361 | Kube.Label { text: "+49812324932"; opacity: 0.6 } |
366 | Item { width: Kube.Units.smallSpacing; height: 1 } | 362 | Item { width: Kube.Units.smallSpacing; height: 1 } |
367 | } | 363 | } |
368 | } | 364 | } |
@@ -372,9 +368,9 @@ Kube.Popup { | |||
372 | 368 | ||
373 | width: personPageRoot.width - Kube.Units.largeSpacing | 369 | width: personPageRoot.width - Kube.Units.largeSpacing |
374 | 370 | ||
375 | Text { text: "Albertstrasse 35a"} | 371 | Kube.Label { text: "Albertstrasse 35a"} |
376 | Text { text: "81767 Teststadt"} | 372 | Kube.Label { text: "81767 Teststadt"} |
377 | Text { text: "GERMANY" } | 373 | Kube.Label { text: "GERMANY" } |
378 | } | 374 | } |
379 | 375 | ||
380 | // Column { | 376 | // Column { |