523 child = topItem.child(childRow) |
523 child = topItem.child(childRow) |
524 if child.checkState() == Qt.CheckState.Checked and ( |
524 if child.checkState() == Qt.CheckState.Checked and ( |
525 child.flags() & Qt.ItemFlag.ItemIsUserCheckable |
525 child.flags() & Qt.ItemFlag.ItemIsUserCheckable |
526 == Qt.ItemFlag.ItemIsUserCheckable |
526 == Qt.ItemFlag.ItemIsUserCheckable |
527 ): |
527 ): |
528 slotsCode.append("{0}\n".format(indentStr)) |
528 slotsCode.append("\n") |
529 slotsCode.append( |
529 slotsCode.append( |
530 "{0}{1}\n".format( |
530 "{0}{1}\n".format( |
531 indentStr, |
531 indentStr, |
532 pyqtSignatureFormat.format(child.data(pyqtSignatureRole)), |
532 pyqtSignatureFormat.format(child.data(pyqtSignatureRole)), |
533 ) |
533 ) |
541 slotsCode.append('{0}"""\n'.format(indentStr2)) |
541 slotsCode.append('{0}"""\n'.format(indentStr2)) |
542 slotsCode.append( |
542 slotsCode.append( |
543 "{0}Slot documentation goes here.\n".format(indentStr2) |
543 "{0}Slot documentation goes here.\n".format(indentStr2) |
544 ) |
544 ) |
545 if child.data(returnTypeRole) or child.data(parameterTypesListRole): |
545 if child.data(returnTypeRole) or child.data(parameterTypesListRole): |
546 slotsCode.append("{0}\n".format(indentStr2)) |
546 slotsCode.append("\n") |
547 if child.data(parameterTypesListRole): |
547 if child.data(parameterTypesListRole): |
548 for name, type_ in zip( |
548 for name, type_ in zip( |
549 child.data(parameterNamesListRole), |
549 child.data(parameterNamesListRole), |
550 child.data(parameterTypesListRole), |
550 child.data(parameterTypesListRole), |
551 ): |
551 ): |