History

Proper handling of enum classes for scripting

ksuprynowicz committed 4 years ago

Commit 33c86071 parent 95434a24 files · +59 −11Browse files

Showing the changes to libraries/script-engine/src/qtscript/ScriptObjectQtProxy.cpp (1 of 4 files). Show all

Unified · Split

libraries/script-engine/src/qtscript/ScriptObjectQtProxy.cpp+6−5
@@ -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();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t