Showing the changes to libraries/script-engine/src/qtscript/ScriptObjectQtProxy.cpp (1 of 4 files). Show all
Unified · Split
| @@ -209,12 +209,13 @@ void ScriptObjectQtProxy::investigate() { · 208 unmodified lines | |||
| 209 | } | 209 | } |
| 210 | } else { | 210 | } else { |
| 211 | int parameterCount = method.parameterCount(); | 211 | int parameterCount = method.parameterCount(); |
| 212 | if (name.toString() == "getRenderMethod"){ | 212 | if(method.returnType() == QMetaType::UnknownType) { |
| 213 | qDebug() << name << " " << QMetaType(method.returnType()).name(); | 213 | qCritical() << "Method " << metaObject->className() << "::" << name << " has QMetaType::UnknownType return value"; |
| 214 | if(method.returnType() == QMetaType::UnknownType) { | 214 | } |
| 215 | qDebug() << "Method with QMetaType::UnknownType"; | 215 | for (int i = 0; i < method.parameterCount(); i++) { |
| 216 | if (method.parameterType(i) == QMetaType::UnknownType) { | ||
| 217 | qCritical() << "Parameter " << i << "in method " << metaObject->className() << "::" << name << " is of type QMetaType::UnknownType"; | ||
| 216 | } | 218 | } |
| 217 | printf("getRenderMethod"); | ||
| 218 | } | 219 | } |
| 219 | if (nameLookup == methodNames.end()) { | 220 | if (nameLookup == methodNames.end()) { |
| 220 | MethodDef& methodDef = _methods.insert(idx, MethodDef()).value(); | 221 | MethodDef& methodDef = _methods.insert(idx, MethodDef()).value(); |