summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>2015-07-22 16:13:32 +0200
committerMitch Curtis <mitch.curtis@theqtcompany.com>2015-07-27 10:45:40 +0000
commite5759d6ab10b4da9bed939ab4b4dfe61c64272ce (patch)
tree79bcb3f07f39c8c4c6033b19527463f8d477bca5
parent09d9ce27ab9ac29aaa36c6d54fe89064dfcde69f (diff)
downloadqtquickcontrols-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.qml7
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
}
}