98 @type QListWidgetItem |
98 @type QListWidgetItem |
99 """ |
99 """ |
100 if self.__isCheckBoxSelection: |
100 if self.__isCheckBoxSelection: |
101 if itm.checkState() == Qt.CheckState.Checked: |
101 if itm.checkState() == Qt.CheckState.Checked: |
102 self.__checkCount += 1 |
102 self.__checkCount += 1 |
103 else: |
103 elif self.__checkCount > 0: |
104 self.__checkCount -= 1 |
104 self.__checkCount -= 1 |
105 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( |
105 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( |
106 self.__checkCount > 0 |
106 self.__checkCount > 0 |
107 ) |
107 ) |
108 |
108 |