Map number to double time since float is also parsed as double in Qt5 C++ (#3046)

This commit is contained in:
sunn 2019-05-31 19:23:07 +02:00 committed by Stefan Krismann
parent 39648ee3a7
commit 7ecc99192d

View File

@ -78,6 +78,7 @@ public class CppQt5AbstractCodegen extends AbstractCppCodegen implements Codegen
typeMapping.put("integer", "qint32");
typeMapping.put("long", "qint64");
typeMapping.put("boolean", "bool");
typeMapping.put("number", "double");
typeMapping.put("array", "QList");
typeMapping.put("map", "QMap");
typeMapping.put("object", PREFIX + "Object");