940 """ |
940 """ |
941 items = [] |
941 items = [] |
942 for index in range(self.statusList.topLevelItemCount()): |
942 for index in range(self.statusList.topLevelItemCount()): |
943 itm = self.statusList.topLevelItem(index) |
943 itm = self.statusList.topLevelItem(index) |
944 if ( |
944 if ( |
945 itm.flags() & Qt.ItemFlag.ItemIsUserCheckable and |
945 (itm.flags() & Qt.ItemFlag.ItemIsUserCheckable == |
|
946 Qt.ItemFlag.ItemIsUserCheckable) and |
946 itm.checkState(self.__toBeCommittedColumn) == |
947 itm.checkState(self.__toBeCommittedColumn) == |
947 Qt.CheckState.Unchecked |
948 Qt.CheckState.Unchecked |
948 ): |
949 ): |
949 items.append(itm) |
950 items.append(itm) |
950 return items |
951 return items |
1051 |
1052 |
1052 @param selected commit selection state to be set (boolean) |
1053 @param selected commit selection state to be set (boolean) |
1053 """ |
1054 """ |
1054 for index in range(self.statusList.topLevelItemCount()): |
1055 for index in range(self.statusList.topLevelItemCount()): |
1055 itm = self.statusList.topLevelItem(index) |
1056 itm = self.statusList.topLevelItem(index) |
1056 if itm.flags() & Qt.ItemFlag.ItemIsUserCheckable: |
1057 if ( |
|
1058 itm.flags() & Qt.ItemFlag.ItemIsUserCheckable == |
|
1059 Qt.ItemFlag.ItemIsUserCheckable |
|
1060 ): |
1057 if selected: |
1061 if selected: |
1058 itm.setCheckState(self.__toBeCommittedColumn, |
1062 itm.setCheckState(self.__toBeCommittedColumn, |
1059 Qt.CheckState.Checked) |
1063 Qt.CheckState.Checked) |
1060 else: |
1064 else: |
1061 itm.setCheckState(self.__toBeCommittedColumn, |
1065 itm.setCheckState(self.__toBeCommittedColumn, |