Fix branch indicators in QTreeView/QTreeWidget

main
Johan Egneblad 2018-12-03 14:04:04 +01:00
parent c4b6a9a6e6
commit 0506fd0876
No known key found for this signature in database
GPG Key ID: 5984C2C92BA15B0A
8 changed files with 2603 additions and 2595 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1205,13 +1205,15 @@ QTreeView::branch:!has-children:!has-siblings:adjoins-item
QTreeView::branch:has-children:!has-siblings:closed,
QTreeView::branch:closed:has-children:has-siblings
{
border-image: url(:/dark/branch-closed.svg);
border-image: none;
image: url(:/dark/branch_closed.svg);
}
QTreeView::branch:open:has-children:!has-siblings,
QTreeView::branch:open:has-children:has-siblings
{
border-image: url(:/dark/branch-open.svg);
border-image: none;
image: url(:/dark/branch_open.svg);
}
QTableView::item,

View File

@ -1,3 +1,3 @@
<svg width="6" height="9">
<path fill="#afafaf" d="M1,8V1L5,4.5Z"/>
<svg width="18" height="18">
<path fill="#afafaf" d="M6,13V6L10,9.5Z"/>
</svg>

Before

Width:  |  Height:  |  Size: 77 B

After

Width:  |  Height:  |  Size: 81 B

View File

@ -1,3 +1,3 @@
<svg width="9" height="6">
<path fill="#afafaf" d="M1,1H8L4.5,5Z"/>
<svg width="18" height="18">
<path fill="#afafaf" d="M6,6H13L9.5,10Z"/>
</svg>

Before

Width:  |  Height:  |  Size: 77 B

After

Width:  |  Height:  |  Size: 81 B

View File

@ -135,7 +135,9 @@ class Ui_MainWindow(object):
self.treeWidget = QtWidgets.QTreeWidget(self.groupBox_2)
self.treeWidget.setObjectName("treeWidget")
item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
item_1 = QtWidgets.QTreeWidgetItem(self.treeWidget)
item_2 = QtWidgets.QTreeWidgetItem(item_1)
item_2.setText(0, "subitem")
self.verticalLayout_4.addWidget(self.treeWidget)
self.gridLayout_2.addWidget(self.groupBox_2, 0, 0, 1, 1)
self.tabWidget.addTab(self.tab_2, "")

View File

@ -1195,13 +1195,13 @@ QTreeView::branch:!has-children:!has-siblings:adjoins-item
QTreeView::branch:has-children:!has-siblings:closed,
QTreeView::branch:closed:has-children:has-siblings
{
border-image: url(:/light/branch-closed.svg);
border-image: url(:/light/branch_closed.svg);
}
QTreeView::branch:open:has-children:!has-siblings,
QTreeView::branch:open:has-children:has-siblings
{
border-image: url(:/light/branch-open.svg);
border-image: url(:/light/branch_open.svg);
}
QTableView::item,

View File

@ -1,3 +1,3 @@
<svg width="6" height="9">
<path fill="#4b4b4b" d="M1,8V1L5,4.5Z"/>
<svg width="18" height="18">
<path fill="#4b4b4b" d="M6,13V6L10,9.5Z"/>
</svg>

Before

Width:  |  Height:  |  Size: 77 B

After

Width:  |  Height:  |  Size: 81 B

View File

@ -1,3 +1,3 @@
<svg width="9" height="6">
<path fill="#4b4b4b" d="M1,1H8L4.5,5Z"/>
<svg width="18" height="18">
<path fill="#4b4b4b" d="M6,6H13L9.5,10Z"/>
</svg>

Before

Width:  |  Height:  |  Size: 77 B

After

Width:  |  Height:  |  Size: 81 B