diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2018-02-28 11:04:52 +0100 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2018-02-28 13:41:42 +0100 |
commit | 27c85e7f11d5de94308e91232e65bf65e4193aef (patch) | |
tree | 8bcf3ad274f1c452926796088eeed591a772260e /views/people/qml/People.qml | |
parent | 6681381298bd9230ae4d8309ef5ff191a5e77ff5 (diff) | |
download | kube-27c85e7f11d5de94308e91232e65bf65e4193aef.tar.gz kube-27c85e7f11d5de94308e91232e65bf65e4193aef.zip |
people composer ui
Diffstat (limited to 'views/people/qml/People.qml')
-rw-r--r-- | views/people/qml/People.qml | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/views/people/qml/People.qml b/views/people/qml/People.qml index 1a08d900..41acfba0 100644 --- a/views/people/qml/People.qml +++ b/views/people/qml/People.qml | |||
@@ -52,6 +52,10 @@ FocusScope { | |||
52 | } | 52 | } |
53 | text: "New Contact" | 53 | text: "New Contact" |
54 | visible: stack.depth == 1 | 54 | visible: stack.depth == 1 |
55 | |||
56 | onClicked: { | ||
57 | stack.push(personComposer) | ||
58 | } | ||
55 | } | 59 | } |
56 | 60 | ||
57 | Kube.IconButton { | 61 | Kube.IconButton { |
@@ -217,6 +221,55 @@ FocusScope { | |||
217 | 221 | ||
218 | PersonPage { | 222 | PersonPage { |
219 | } | 223 | } |
224 | |||
225 | Kube.Button { | ||
226 | |||
227 | anchors { | ||
228 | bottom: parent.bottom | ||
229 | right: parent.right | ||
230 | margins: Kube.Units.largeSpacing | ||
231 | } | ||
232 | |||
233 | text: "Edit" | ||
234 | |||
235 | onClicked: { | ||
236 | stack.push(personComposer) | ||
237 | } | ||
238 | } | ||
239 | } | ||
240 | } | ||
241 | |||
242 | |||
243 | Component { | ||
244 | id: personComposer | ||
245 | |||
246 | Rectangle { | ||
247 | id: personComposerRoot | ||
248 | |||
249 | Kube.ContactController { | ||
250 | id: contactController | ||
251 | contact: "" | ||
252 | } | ||
253 | |||
254 | color: Kube.Colors.viewBackgroundColor | ||
255 | |||
256 | PersonComposer { | ||
257 | } | ||
258 | |||
259 | Kube.PositiveButton { | ||
260 | |||
261 | anchors { | ||
262 | bottom: parent.bottom | ||
263 | right: parent.right | ||
264 | margins: Kube.Units.largeSpacing | ||
265 | } | ||
266 | |||
267 | text: "Save" | ||
268 | |||
269 | onClicked: { | ||
270 | stack.pop() | ||
271 | } | ||
272 | } | ||
220 | } | 273 | } |
221 | } | 274 | } |
222 | } | 275 | } |