(self)
| 79 | |
| 80 | @property |
| 81 | def state(self): |
| 82 | tests = [item.checkState() == QtCore.Qt.Checked for item in self.items] |
| 83 | n_checked = sum(tests) |
| 84 | if all(tests): |
| 85 | state = QtCore.Qt.Checked |
| 86 | elif any(tests): |
| 87 | state = QtCore.Qt.PartiallyChecked |
| 88 | else: |
| 89 | state = QtCore.Qt.Unchecked |
| 90 | return state, n_checked |
| 91 | |
| 92 | def add_item(self, path): |
| 93 | item = QStandardItem(path) |
no outgoing calls
no test coverage detected