summaryrefslogtreecommitdiffstats
path: root/framework/qml/People.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-21 17:21:35 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-21 17:21:35 +0200
commitbdd54743c254ce6b8b4cfb04622323701a86dd04 (patch)
tree60fb9545c98aeec6db5f25eadde35547cf7be1a0 /framework/qml/People.qml
parent90af339fcbbc8fc918254c9d46dd03fa7f2d7604 (diff)
downloadkube-bdd54743c254ce6b8b4cfb04622323701a86dd04.tar.gz
kube-bdd54743c254ce6b8b4cfb04622323701a86dd04.zip
Use an AbstractButton in People.qml for the delegate
Using Kube.Button currently crashes, due to the font.underline assignment in the contentItem (although it is replaced in People.qml). It seems the grouped property is somehow executed after the original content item was already destroyed, resulting in a SEGFAULT.
Diffstat (limited to 'framework/qml/People.qml')
-rw-r--r--framework/qml/People.qml4
1 files changed, 1 insertions, 3 deletions
diff --git a/framework/qml/People.qml b/framework/qml/People.qml
index bdb2cdf2..c2c6c9ef 100644
--- a/framework/qml/People.qml
+++ b/framework/qml/People.qml
@@ -134,15 +134,13 @@ FocusScope {
134 filter: searchBar.text 134 filter: searchBar.text
135 } 135 }
136 136
137 //TODO using Kube.Button currently crashes, but shouldn't 137 delegate: Kube.AbstractButton {
138 delegate: Button {
139 id: delegateRoot 138 id: delegateRoot
140 139
141 height: Kube.Units.gridUnit * 3 140 height: Kube.Units.gridUnit * 3
142 width: Kube.Units.gridUnit * 10 141 width: Kube.Units.gridUnit * 10
143 142
144 activeFocusOnTab: true 143 activeFocusOnTab: true
145 Keys.onReturnPressed: delegateRoot.clicked()
146 144
147 onClicked: { 145 onClicked: {
148 root.currentContact = model.domainObject 146 root.currentContact = model.domainObject