From 85e98907c6ea4300ad945fd3753e43cb75cafec6 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 2 May 2017 14:22:11 +0200 Subject: Prepare different views in a stacklayout --- framework/qml/People.qml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'framework/qml') diff --git a/framework/qml/People.qml b/framework/qml/People.qml index e8a4fca3..58aa340c 100644 --- a/framework/qml/People.qml +++ b/framework/qml/People.qml @@ -26,12 +26,11 @@ import org.kde.kirigami 1.0 as Kirigami import org.kube.framework 1.0 as Kube -Kube.Popup { - id: popup +Item { + id: root property var currentContact - modal: true onVisibleChanged: { if (visible) { Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "contacts"}); @@ -143,7 +142,7 @@ Kube.Popup { anchors.fill: parent onClicked: { - popup.currentContact = model.domainObject + root.currentContact = model.domainObject stack.push(personPage) } } @@ -197,7 +196,7 @@ Kube.Popup { Kube.ContactController { id: contactController - contact: popup.currentContact + contact: root.currentContact } color: Kube.Colors.viewBackgroundColor -- cgit v1.2.3