995 |
995 |
996 @param selected commit selection state to be set (boolean) |
996 @param selected commit selection state to be set (boolean) |
997 """ |
997 """ |
998 for index in range(self.statusList.topLevelItemCount()): |
998 for index in range(self.statusList.topLevelItemCount()): |
999 itm = self.statusList.topLevelItem(index) |
999 itm = self.statusList.topLevelItem(index) |
1000 if itm.flags() & Qt.ItemFlag.ItemIsUserCheckable: |
1000 if ( |
|
1001 itm.flags() & Qt.ItemFlag.ItemIsUserCheckable == |
|
1002 Qt.ItemFlag.ItemIsUserCheckable |
|
1003 ): |
1001 if selected: |
1004 if selected: |
1002 itm.setCheckState( |
1005 itm.setCheckState( |
1003 self.__toBeCommittedColumn, Qt.CheckState.Checked) |
1006 self.__toBeCommittedColumn, Qt.CheckState.Checked) |
1004 else: |
1007 else: |
1005 itm.setCheckState( |
1008 itm.setCheckState( |