710 """ |
710 """ |
711 items = [] |
711 items = [] |
712 for index in range(self.statusList.topLevelItemCount()): |
712 for index in range(self.statusList.topLevelItemCount()): |
713 itm = self.statusList.topLevelItem(index) |
713 itm = self.statusList.topLevelItem(index) |
714 if ( |
714 if ( |
715 itm.flags() & Qt.ItemFlag.ItemIsUserCheckable and |
715 (itm.flags() & Qt.ItemFlag.ItemIsUserCheckable == |
|
716 Qt.ItemFlag.ItemIsUserCheckable) and |
716 itm.checkState(self.__toBeCommittedColumn) == |
717 itm.checkState(self.__toBeCommittedColumn) == |
717 Qt.CheckState.Unchecked |
718 Qt.CheckState.Unchecked |
718 ): |
719 ): |
719 items.append(itm) |
720 items.append(itm) |
720 return items |
721 return items |
762 |
763 |
763 @param selected commit selection state to be set (boolean) |
764 @param selected commit selection state to be set (boolean) |
764 """ |
765 """ |
765 for index in range(self.statusList.topLevelItemCount()): |
766 for index in range(self.statusList.topLevelItemCount()): |
766 itm = self.statusList.topLevelItem(index) |
767 itm = self.statusList.topLevelItem(index) |
767 if itm.flags() & Qt.ItemFlag.ItemIsUserCheckable: |
768 if ( |
|
769 itm.flags() & Qt.ItemFlag.ItemIsUserCheckable == |
|
770 Qt.ItemFlag.ItemIsUserCheckable |
|
771 ): |
768 if selected: |
772 if selected: |
769 itm.setCheckState(self.__toBeCommittedColumn, |
773 itm.setCheckState(self.__toBeCommittedColumn, |
770 Qt.CheckState.Checked) |
774 Qt.CheckState.Checked) |
771 else: |
775 else: |
772 itm.setCheckState(self.__toBeCommittedColumn, |
776 itm.setCheckState(self.__toBeCommittedColumn, |