diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-02 14:22:11 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-02 14:22:11 +0200 |
commit | 85e98907c6ea4300ad945fd3753e43cb75cafec6 (patch) | |
tree | 0684044628edee2397bf329aa25a82aff1de43db /framework/qml/People.qml | |
parent | d4bd3ad8d6d1f75b6c284336148e3a2c71dc1882 (diff) | |
download | kube-85e98907c6ea4300ad945fd3753e43cb75cafec6.tar.gz kube-85e98907c6ea4300ad945fd3753e43cb75cafec6.zip |
Prepare different views in a stacklayout
Diffstat (limited to 'framework/qml/People.qml')
-rw-r--r-- | framework/qml/People.qml | 9 |
1 files changed, 4 insertions, 5 deletions
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 | |||
26 | import org.kube.framework 1.0 as Kube | 26 | import org.kube.framework 1.0 as Kube |
27 | 27 | ||
28 | 28 | ||
29 | Kube.Popup { | 29 | Item { |
30 | id: popup | 30 | id: root |
31 | 31 | ||
32 | property var currentContact | 32 | property var currentContact |
33 | 33 | ||
34 | modal: true | ||
35 | onVisibleChanged: { | 34 | onVisibleChanged: { |
36 | if (visible) { | 35 | if (visible) { |
37 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "contacts"}); | 36 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "contacts"}); |
@@ -143,7 +142,7 @@ Kube.Popup { | |||
143 | anchors.fill: parent | 142 | anchors.fill: parent |
144 | 143 | ||
145 | onClicked: { | 144 | onClicked: { |
146 | popup.currentContact = model.domainObject | 145 | root.currentContact = model.domainObject |
147 | stack.push(personPage) | 146 | stack.push(personPage) |
148 | } | 147 | } |
149 | } | 148 | } |
@@ -197,7 +196,7 @@ Kube.Popup { | |||
197 | 196 | ||
198 | Kube.ContactController { | 197 | Kube.ContactController { |
199 | id: contactController | 198 | id: contactController |
200 | contact: popup.currentContact | 199 | contact: root.currentContact |
201 | } | 200 | } |
202 | 201 | ||
203 | color: Kube.Colors.viewBackgroundColor | 202 | color: Kube.Colors.viewBackgroundColor |