diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-07-26 10:12:09 -0600 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-07-26 11:08:29 -0600 |
commit | 4669fbb5738ee3a1496b6f52607d511019148bfd (patch) | |
tree | 6557aee03bba6500fbbf97c5df5f777884d54986 /framework/qml/TreeView.qml | |
parent | bc416d487a406df3ed4ec958816bd69d2a4a4071 (diff) | |
download | kube-4669fbb5738ee3a1496b6f52607d511019148bfd.tar.gz kube-4669fbb5738ee3a1496b6f52607d511019148bfd.zip |
Fixed branch delegate positioning
Diffstat (limited to 'framework/qml/TreeView.qml')
-rw-r--r-- | framework/qml/TreeView.qml | 15 |
1 files changed, 7 insertions, 8 deletions
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 { | |||
183 | color: Kube.Colors.textColor | 183 | color: Kube.Colors.textColor |
184 | } | 184 | } |
185 | 185 | ||
186 | branchDelegate: Item { | 186 | branchDelegate: Kube.Label { |
187 | width: 16 | 187 | width: 16 |
188 | height: 16 | 188 | height: width |
189 | Kube.Label { | 189 | anchors.verticalCenter: parent.verticalCenter |
190 | anchors.centerIn: parent | 190 | anchors.left: parent.left |
191 | anchors.leftMargin: Kube.Units.smallSpacing | ||
191 | 192 | ||
192 | color: Kube.Colors.viewBackgroundColor | 193 | color: Kube.Colors.viewBackgroundColor |
193 | text: styleData.isExpanded ? "-" : "+" | 194 | text: styleData.isExpanded ? "-" : "+" |
194 | } | ||
195 | //radius: styleData.isExpanded ? 0 : 100 | ||
196 | } | 195 | } |
197 | 196 | ||
198 | itemDelegate: Item { | 197 | itemDelegate: Item { |