337 self.slotsModel.appendRow(itm) |
337 self.slotsModel.appendRow(itm) |
338 for methodDict in objectDict["methods"]: |
338 for methodDict in objectDict["methods"]: |
339 itm2 = QStandardItem(methodDict["signature"]) |
339 itm2 = QStandardItem(methodDict["signature"]) |
340 itm.appendRow(itm2) |
340 itm.appendRow(itm2) |
341 |
341 |
342 if self.__module is not None: |
342 if ( |
343 if ( |
343 self.__module is not None and |
344 methodDict["methods"][0] in signatureList or |
344 (methodDict["methods"][0] in signatureList or |
345 methodDict["methods"][1] in signatureList |
345 methodDict["methods"][1] in signatureList) |
346 ): |
346 ): |
347 itm2.setFlags( |
347 itm2.setFlags( |
348 Qt.ItemFlags(Qt.ItemFlag.ItemIsEnabled)) |
348 Qt.ItemFlags(Qt.ItemFlag.ItemIsEnabled)) |
349 itm2.setCheckState(Qt.CheckState.Checked) |
349 itm2.setCheckState(Qt.CheckState.Checked) |
350 if e5App().usesDarkPalette(): |
350 if e5App().usesDarkPalette(): |
351 itm2.setForeground(QBrush(QColor("#75bfff"))) |
351 itm2.setForeground(QBrush(QColor("#75bfff"))) |
352 else: |
352 else: |
353 itm2.setForeground(QBrush(Qt.GlobalColor.blue)) |
353 itm2.setForeground(QBrush(Qt.GlobalColor.blue)) |
354 continue |
354 continue |
355 |
355 |
356 itm2.setData(methodDict["pyqt_signature"], |
356 itm2.setData(methodDict["pyqt_signature"], |
357 pyqtSignatureRole) |
357 pyqtSignatureRole) |
358 itm2.setData(methodDict["python_signature"], |
358 itm2.setData(methodDict["python_signature"], |
359 pythonSignatureRole) |
359 pythonSignatureRole) |