From cb17a0b60ee944e9e60cc29a8351080d1efd109f Mon Sep 17 00:00:00 2001 From: Johnny Chan Date: Mon, 23 Oct 2023 21:16:56 +1300 Subject: [PATCH] tree widget bg fix #390 --- NodeGraphQt/custom_widgets/nodes_tree.py | 1 - examples/basic_example.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/NodeGraphQt/custom_widgets/nodes_tree.py b/NodeGraphQt/custom_widgets/nodes_tree.py index a6992ad7..192d2692 100644 --- a/NodeGraphQt/custom_widgets/nodes_tree.py +++ b/NodeGraphQt/custom_widgets/nodes_tree.py @@ -95,7 +95,6 @@ def _build_tree(self): cat_item = _BaseNodeTreeItem(self, [label], type=TYPE_CATEGORY) cat_item.setFirstColumnSpanned(True) cat_item.setFlags(QtCore.Qt.ItemIsEnabled) - cat_item.setBackground(0, QtGui.QBrush(palette.midlight().color())) cat_item.setSizeHint(0, QtCore.QSize(100, 26)) self.addTopLevelItem(cat_item) cat_item.setExpanded(True) diff --git a/examples/basic_example.py b/examples/basic_example.py index 0a82d5ef..db326418 100644 --- a/examples/basic_example.py +++ b/examples/basic_example.py @@ -115,7 +115,7 @@ properties_bin = PropertiesBinWidget(node_graph=graph) properties_bin.setWindowFlags(QtCore.Qt.Tool) - # example show the node properties bin widget when a node is double clicked. + # example show the node properties bin widget when a node is double-clicked. def display_properties_bin(node): if not properties_bin.isVisible(): properties_bin.show()