127 } |
127 } |
128 |
128 |
129 for index in range(metaObject.methodCount()): |
129 for index in range(metaObject.methodCount()): |
130 metaMethod = metaObject.method(index) |
130 metaMethod = metaObject.method(index) |
131 if metaMethod.methodType() == QMetaMethod.MethodType.Signal: |
131 if metaMethod.methodType() == QMetaMethod.MethodType.Signal: |
132 signatureDict = {"methods": []} |
132 signatureDict = { |
133 signatureDict["signature"] = "on_{0}_{1}".format( |
133 "signature": "on_{0}_{1}".format( |
134 name, bytes(metaMethod.methodSignature()).decode() |
134 name, bytes(metaMethod.methodSignature()).decode() |
135 ) |
135 ), |
136 |
136 "methods": [ |
137 signatureDict["methods"].append( |
137 "on_{0}_{1}".format( |
138 "on_{0}_{1}".format( |
138 name, |
139 name, |
139 bytes(metaMethod.methodSignature()) |
140 bytes(metaMethod.methodSignature()).decode().split("(")[0], |
140 .decode() |
141 ) |
141 .split("(")[0], |
142 ) |
142 ), |
|
143 ], |
|
144 } |
143 signatureDict["methods"].append( |
145 signatureDict["methods"].append( |
144 "{0}({1})".format( |
146 "{0}({1})".format( |
145 signatureDict["methods"][-1], |
147 signatureDict["methods"][-1], |
146 ", ".join( |
148 ", ".join( |
147 [__mapType(t) for t in metaMethod.parameterTypes()] |
149 [__mapType(t) for t in metaMethod.parameterTypes()] |