diff options
author | Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com> | 2015-07-22 16:13:32 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2015-07-27 10:45:40 +0000 |
commit | e5759d6ab10b4da9bed939ab4b4dfe61c64272ce (patch) | |
tree | 79bcb3f07f39c8c4c6033b19527463f8d477bca5 | |
parent | 09d9ce27ab9ac29aaa36c6d54fe89064dfcde69f (diff) | |
download | qtquickcontrols-e5759d6ab10b4da9bed939ab4b4dfe61c64272ce.tar.gz qtquickcontrols-e5759d6ab10b4da9bed939ab4b4dfe61c64272ce.tar.bz2 qtquickcontrols-e5759d6ab10b4da9bed939ab4b4dfe61c64272ce.zip |
Base/TreeViewStyle: Fix first column margin
Change-Id: Ib95cf01c2dfc9087101e73647df5ea7975af172d
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
-rw-r--r-- | src/controls/Styles/Base/TreeViewStyle.qml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/controls/Styles/Base/TreeViewStyle.qml b/src/controls/Styles/Base/TreeViewStyle.qml index b8f03f65..e90542fe 100644 --- a/src/controls/Styles/Base/TreeViewStyle.qml +++ b/src/controls/Styles/Base/TreeViewStyle.qml @@ -43,10 +43,10 @@ BasicTableViewStyle { readonly property TreeView control: __control - property int indentation: 12 + property int indentation: 16 property Component branchDelegate: Item { - width: 16 + width: indentation height: 16 Text { visible: styleData.column === 0 && styleData.hasChildren @@ -54,8 +54,9 @@ BasicTableViewStyle { color: !control.activeFocus || styleData.selected ? styleData.textColor : "#666" font.pointSize: 10 renderType: Text.NativeRendering + style: Text.PlainText anchors.centerIn: parent - anchors.verticalCenterOffset: styleData.isExpanded ? 2 : 0 + anchors.verticalCenterOffset: 2 } } |