From ac01f87bb406aa3bb25ec0e83e888a6512d9b9b2 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Thu, 6 Jun 2024 14:27:50 -0500 Subject: [PATCH] Make items in filter list auto tristate --- openmc_plotter/docks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openmc_plotter/docks.py b/openmc_plotter/docks.py index a9a5ce8..b1db673 100644 --- a/openmc_plotter/docks.py +++ b/openmc_plotter/docks.py @@ -404,7 +404,8 @@ def _createFilterTree(self, spatial_filters): 0, "Only tallies with spatial filters are viewable.") else: filter_item.setFlags( - filter_item.flags() | QtCore.Qt.ItemIsUserCheckable) + filter_item.flags() | QtCore.Qt.ItemIsUserCheckable | + QtCore.Qt.ItemIsAutoTristate) filter_item.setCheckState(0, QtCore.Qt.Unchecked) # all mesh bins are selected by default and not shown in the dock