From bdd54743c254ce6b8b4cfb04622323701a86dd04 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 21 Jul 2017 17:21:35 +0200 Subject: 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. --- framework/qml/People.qml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'framework/qml/People.qml') 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 { filter: searchBar.text } - //TODO using Kube.Button currently crashes, but shouldn't - delegate: Button { + delegate: Kube.AbstractButton { id: delegateRoot height: Kube.Units.gridUnit * 3 width: Kube.Units.gridUnit * 10 activeFocusOnTab: true - Keys.onReturnPressed: delegateRoot.clicked() onClicked: { root.currentContact = model.domainObject -- cgit v1.2.3