diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2018-01-16 13:40:45 +0100 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2018-01-16 13:40:45 +0100 |
commit | 908f7c4ac1396ec6b27b921b93c6987d65b2409c (patch) | |
tree | 1aa54dfb425bb036982dad7d736284eb3bd98599 | |
parent | 87c123cafb19cea121a7095b65f41e509d283f10 (diff) | |
download | kube-908f7c4ac1396ec6b27b921b93c6987d65b2409c.tar.gz kube-908f7c4ac1396ec6b27b921b93c6987d65b2409c.zip |
use positive button for new_contact
-rw-r--r-- | framework/qml/People.qml | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/framework/qml/People.qml b/framework/qml/People.qml index 02844501..b58599a1 100644 --- a/framework/qml/People.qml +++ b/framework/qml/People.qml | |||
@@ -44,6 +44,16 @@ FocusScope { | |||
44 | height: searchBar.height + Kube.Units.smallSpacing | 44 | height: searchBar.height + Kube.Units.smallSpacing |
45 | width: parent.width | 45 | width: parent.width |
46 | 46 | ||
47 | Kube.PositiveButton { | ||
48 | anchors { | ||
49 | verticalCenter: parent.verticalCenter | ||
50 | left: parent.left | ||
51 | leftMargin: Kube.Units.smallSpacing | ||
52 | } | ||
53 | text: "New Contact" | ||
54 | visible: stack.depth == 1 | ||
55 | } | ||
56 | |||
47 | Kube.IconButton { | 57 | Kube.IconButton { |
48 | anchors { | 58 | anchors { |
49 | top: parent.top | 59 | top: parent.top |
@@ -61,14 +71,6 @@ FocusScope { | |||
61 | width: parent.width * 0.5 | 71 | width: parent.width * 0.5 |
62 | placeholderText: "Search..." | 72 | placeholderText: "Search..." |
63 | } | 73 | } |
64 | Kube.IconButton { | ||
65 | anchors { | ||
66 | top: parent.top | ||
67 | right: parent.right | ||
68 | rightMargin: Kube.Units.smallSpacing | ||
69 | } | ||
70 | iconName: Kube.Icons.addNew | ||
71 | } | ||
72 | } | 74 | } |
73 | 75 | ||
74 | Controls2.StackView { | 76 | Controls2.StackView { |
@@ -336,17 +338,15 @@ FocusScope { | |||
336 | width: personPageRoot.width - Kube.Units.largeSpacing | 338 | width: personPageRoot.width - Kube.Units.largeSpacing |
337 | 339 | ||
338 | Repeater { | 340 | Repeater { |
339 | |||
340 | model: contactController.emails | 341 | model: contactController.emails |
341 | 342 | ||
342 | Row { | 343 | delegate: Row { |
343 | spacing: Kube.Units.smallSpacing | 344 | spacing: Kube.Units.smallSpacing |
344 | Kube.Label { text: qsTr("(main)") } | 345 | Kube.Label { text: qsTr("(main)") } |
345 | Kube.Label { text: modelData ; color: Kube.Colors.highlightColor } | 346 | Kube.Label { text: modelData ; color: Kube.Colors.highlightColor } |
346 | Item { width: Kube.Units.smallSpacing; height: 1 } | 347 | Item { width: Kube.Units.smallSpacing; height: 1 } |
347 | } | 348 | } |
348 | } | 349 | } |
349 | |||
350 | } | 350 | } |
351 | 351 | ||
352 | Flow { | 352 | Flow { |