508 for row in range(self.slotsModel.rowCount()): |
508 for row in range(self.slotsModel.rowCount()): |
509 topItem = self.slotsModel.item(row) |
509 topItem = self.slotsModel.item(row) |
510 for childRow in range(topItem.rowCount()): |
510 for childRow in range(topItem.rowCount()): |
511 child = topItem.child(childRow) |
511 child = topItem.child(childRow) |
512 if ( |
512 if ( |
513 child.checkState() and |
513 child.checkState() == Qt.CheckState.Checked and |
514 child.flags() & Qt.ItemFlag.ItemIsUserCheckable |
514 (child.flags() & Qt.ItemFlag.ItemIsUserCheckable == |
|
515 Qt.ItemFlag.ItemIsUserCheckable) |
515 ): |
516 ): |
516 slotsCode.append('{0}\n'.format(indentStr)) |
517 slotsCode.append('{0}\n'.format(indentStr)) |
517 slotsCode.append('{0}{1}\n'.format( |
518 slotsCode.append('{0}{1}\n'.format( |
518 indentStr, |
519 indentStr, |
519 pyqtSignatureFormat.format( |
520 pyqtSignatureFormat.format( |