diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2018-03-02 11:50:52 +0100 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2018-03-02 11:50:52 +0100 |
commit | f0b2dd171acd7c809325134f7c99a9cf03a214db (patch) | |
tree | cf9353ee26fad94be4da71845f87d0ab8d3aefeb | |
parent | cbcb2e305fb02853234e5394c4202b1150026d81 (diff) | |
download | kube-f0b2dd171acd7c809325134f7c99a9cf03a214db.tar.gz kube-f0b2dd171acd7c809325134f7c99a9cf03a214db.zip |
actually load the contact when editing
-rw-r--r-- | views/people/qml/People.qml | 10 | ||||
-rw-r--r-- | views/people/qml/PersonComposer.qml | 4 |
2 files changed, 8 insertions, 6 deletions
diff --git a/views/people/qml/People.qml b/views/people/qml/People.qml index e2879a9b..38a95d75 100644 --- a/views/people/qml/People.qml +++ b/views/people/qml/People.qml | |||
@@ -66,7 +66,11 @@ FocusScope { | |||
66 | } | 66 | } |
67 | visible: stack.depth > 1 | 67 | visible: stack.depth > 1 |
68 | iconName: Kube.Icons.goBack | 68 | iconName: Kube.Icons.goBack |
69 | onClicked: stack.pop() | 69 | onClicked: { |
70 | if(stack.depth == 1) | ||
71 | root.currentContact = "" | ||
72 | stack.pop() | ||
73 | } | ||
70 | } | 74 | } |
71 | Kube.TextField { | 75 | Kube.TextField { |
72 | id: searchBar | 76 | id: searchBar |
@@ -229,7 +233,6 @@ FocusScope { | |||
229 | right: parent.right | 233 | right: parent.right |
230 | margins: Kube.Units.largeSpacing | 234 | margins: Kube.Units.largeSpacing |
231 | } | 235 | } |
232 | |||
233 | text: "Edit" | 236 | text: "Edit" |
234 | 237 | ||
235 | onClicked: { | 238 | onClicked: { |
@@ -239,7 +242,6 @@ FocusScope { | |||
239 | } | 242 | } |
240 | } | 243 | } |
241 | 244 | ||
242 | |||
243 | Component { | 245 | Component { |
244 | id: personComposer | 246 | id: personComposer |
245 | 247 | ||
@@ -248,7 +250,7 @@ FocusScope { | |||
248 | 250 | ||
249 | Kube.ContactController { | 251 | Kube.ContactController { |
250 | id: contactController | 252 | id: contactController |
251 | contact: "" | 253 | contact: root.currentContact |
252 | } | 254 | } |
253 | 255 | ||
254 | color: Kube.Colors.viewBackgroundColor | 256 | color: Kube.Colors.viewBackgroundColor |
diff --git a/views/people/qml/PersonComposer.qml b/views/people/qml/PersonComposer.qml index e3140953..c85360a9 100644 --- a/views/people/qml/PersonComposer.qml +++ b/views/people/qml/PersonComposer.qml | |||
@@ -175,7 +175,7 @@ Flickable { | |||
175 | delegate: Row { | 175 | delegate: Row { |
176 | spacing: Kube.Units.smallSpacing | 176 | spacing: Kube.Units.smallSpacing |
177 | Kube.Label { text: qsTr("(main)") } | 177 | Kube.Label { text: qsTr("(main)") } |
178 | Kube.TextField { text: modelData ; color: Kube.Colors.highlightColor } | 178 | Kube.TextField { width: Kube.Units.gridUnit * 15; text: modelData ; color: Kube.Colors.highlightColor } |
179 | Item { width: Kube.Units.smallSpacing; height: 1 } | 179 | Item { width: Kube.Units.smallSpacing; height: 1 } |
180 | } | 180 | } |
181 | } | 181 | } |
@@ -205,7 +205,7 @@ Flickable { | |||
205 | Row { | 205 | Row { |
206 | spacing: Kube.Units.smallSpacing | 206 | spacing: Kube.Units.smallSpacing |
207 | Kube.Label { text: qsTr("(main)") } | 207 | Kube.Label { text: qsTr("(main)") } |
208 | Kube.TextField { text: modelData ; opacity: 0.6 } | 208 | Kube.TextField { width: Kube.Units.gridUnit * 15; text: modelData} |
209 | Item { width: Kube.Units.smallSpacing; height: 1 } | 209 | Item { width: Kube.Units.smallSpacing; height: 1 } |
210 | } | 210 | } |
211 | } | 211 | } |