Showing the changes to libraries/script-engine/src/qtscript/ScriptEngineQtScript_cast.cpp (1 of 34 files). Show all
Unified · Split
| @@ -42,6 +42,7 @@ void ScriptEngineQtScript::registerCustomType(int type, · 41 unmodified lines | ||
| 42 | 42 | CustomMarshal& customType = _customTypes.insert(type, CustomMarshal()).value(); |
| 43 | 43 | customType.demarshalFunc = demarshalFunc; |
| 44 | 44 | customType.marshalFunc = marshalFunc; |
| 45 | + qDebug() << "registerCustomType: " << QMetaType(type).name() << " type: " << type << " map size: " << _customTypes.size(); | |
| 45 | 46 | } |
| 46 | 47 | |
| 47 | 48 | Q_DECLARE_METATYPE(ScriptValue); |
| @@ -209,6 +210,13 @@ bool ScriptEngineQtScript::castValueToVariant(const QScriptValue& val, QVariant& · 161 unmodified lines | ||
| 209 | 210 | } |
| 210 | 211 | } |
| 211 | 212 | } |
| 213 | +/* if (QMetaType(destTypeId).name() == "MenuItemProperties") { | |
| 214 | + qDebug() << "castValueToVariant MenuItemProperties " << destTypeId << "map size: " << _customTypes.size(); | |
| 215 | + for (auto iter = _customTypes.keyBegin(); iter != _customTypes.keyEnd(); iter++){ | |
| 216 | + qDebug() << (*iter); | |
| 217 | + } | |
| 218 | + printf("castValueToVariant MenuItemProperties"); | |
| 219 | + }*/ | |
| 212 | 220 | |
| 213 | 221 | if (destTypeId == qMetaTypeId<ScriptValue>()) { |
| 214 | 222 | dest = QVariant::fromValue(ScriptValue(new ScriptValueQtWrapper(this, val))); |