From 4669fbb5738ee3a1496b6f52607d511019148bfd Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 26 Jul 2017 10:12:09 -0600 Subject: Fixed branch delegate positioning --- framework/qml/TreeView.qml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'framework/qml') diff --git a/framework/qml/TreeView.qml b/framework/qml/TreeView.qml index caef0146..2392f6ef 100644 --- a/framework/qml/TreeView.qml +++ b/framework/qml/TreeView.qml @@ -183,16 +183,15 @@ FocusScope { color: Kube.Colors.textColor } - branchDelegate: Item { + branchDelegate: Kube.Label { width: 16 - height: 16 - Kube.Label { - anchors.centerIn: parent + height: width + anchors.verticalCenter: parent.verticalCenter + anchors.left: parent.left + anchors.leftMargin: Kube.Units.smallSpacing - color: Kube.Colors.viewBackgroundColor - text: styleData.isExpanded ? "-" : "+" - } - //radius: styleData.isExpanded ? 0 : 100 + color: Kube.Colors.viewBackgroundColor + text: styleData.isExpanded ? "-" : "+" } itemDelegate: Item { -- cgit v1.2.3