338 if ( |
338 if ( |
339 self.__module is not None and |
339 self.__module is not None and |
340 (methodDict["methods"][0] in signatureList or |
340 (methodDict["methods"][0] in signatureList or |
341 methodDict["methods"][1] in signatureList) |
341 methodDict["methods"][1] in signatureList) |
342 ): |
342 ): |
343 itm2.setFlags( |
343 itm2.setFlags(Qt.ItemFlag.ItemIsEnabled) |
344 Qt.ItemFlags(Qt.ItemFlag.ItemIsEnabled)) |
|
345 itm2.setCheckState(Qt.CheckState.Checked) |
344 itm2.setCheckState(Qt.CheckState.Checked) |
346 if e5App().usesDarkPalette(): |
345 if e5App().usesDarkPalette(): |
347 itm2.setForeground(QBrush(QColor("#75bfff"))) |
346 itm2.setForeground(QBrush(QColor("#75bfff"))) |
348 else: |
347 else: |
349 itm2.setForeground(QBrush(Qt.GlobalColor.blue)) |
348 itm2.setForeground(QBrush(Qt.GlobalColor.blue)) |
358 itm2.setData(methodDict["parameter_types"], |
357 itm2.setData(methodDict["parameter_types"], |
359 parameterTypesListRole) |
358 parameterTypesListRole) |
360 itm2.setData(methodDict["parameter_names"], |
359 itm2.setData(methodDict["parameter_names"], |
361 parameterNamesListRole) |
360 parameterNamesListRole) |
362 |
361 |
363 itm2.setFlags(Qt.ItemFlags( |
362 itm2.setFlags( |
364 Qt.ItemFlag.ItemIsUserCheckable | |
363 Qt.ItemFlag.ItemIsUserCheckable | |
365 Qt.ItemFlag.ItemIsEnabled | |
364 Qt.ItemFlag.ItemIsEnabled | |
366 Qt.ItemFlag.ItemIsSelectable) |
365 Qt.ItemFlag.ItemIsSelectable |
367 ) |
366 ) |
368 itm2.setCheckState(Qt.CheckState.Unchecked) |
367 itm2.setCheckState(Qt.CheckState.Unchecked) |
369 |
368 |
370 self.slotsView.sortByColumn(0, Qt.SortOrder.AscendingOrder) |
369 self.slotsView.sortByColumn(0, Qt.SortOrder.AscendingOrder) |
371 |
370 |
509 topItem = self.slotsModel.item(row) |
508 topItem = self.slotsModel.item(row) |
510 for childRow in range(topItem.rowCount()): |
509 for childRow in range(topItem.rowCount()): |
511 child = topItem.child(childRow) |
510 child = topItem.child(childRow) |
512 if ( |
511 if ( |
513 child.checkState() and |
512 child.checkState() and |
514 child.flags() & Qt.ItemFlags( |
513 child.flags() & Qt.ItemFlag.ItemIsUserCheckable |
515 Qt.ItemFlag.ItemIsUserCheckable) |
|
516 ): |
514 ): |
517 slotsCode.append('{0}\n'.format(indentStr)) |
515 slotsCode.append('{0}\n'.format(indentStr)) |
518 slotsCode.append('{0}{1}\n'.format( |
516 slotsCode.append('{0}{1}\n'.format( |
519 indentStr, |
517 indentStr, |
520 pyqtSignatureFormat.format( |
518 pyqtSignatureFormat.format( |