We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdd309d commit 3e86f7aCopy full SHA for 3e86f7a
python/tk_multi_publish2/publish_tree_widget/custom_widget_item.py
@@ -63,10 +63,10 @@ def nextCheckState(self):
63
"""
64
# Qt tri-state logic is a little odd. The default behaviour is to go from unchecked
65
# to partially checked. We want it to go from unchecked to checked
66
- if self.ui.checkbox.checkState() == QtCore.Qt.CheckState.Checked:
67
- next_state = QtCore.Qt.CheckState.Unchecked
+ if self.ui.checkbox.checkState() == QtCore.Qt.Checked:
+ next_state = QtCore.Qt.Unchecked
68
else:
69
- next_state = QtCore.Qt.CheckState.Checked
+ next_state = QtCore.Qt.Checked
70
self.ui.checkbox.setCheckState(next_state)
71
self._tree_node.set_check_state(next_state)
72
0 commit comments