Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ChecksState prefix for PyQt #135

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ def nextCheckState(self):
"""
# Qt tri-state logic is a little odd. The default behaviour is to go from unchecked
# to partially checked. We want it to go from unchecked to checked
if self.ui.checkbox.checkState() == QtCore.Qt.CheckState.Checked:
next_state = QtCore.Qt.CheckState.Unchecked
if self.ui.checkbox.checkState() == QtCore.Qt.Checked:
next_state = QtCore.Qt.Unchecked
else:
next_state = QtCore.Qt.CheckState.Checked
next_state = QtCore.Qt.Checked
self.ui.checkbox.setCheckState(next_state)
self._tree_node.set_check_state(next_state)

Expand Down