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