[Qt5 C++] Actually use the model name prefix in the Qt5 generator (#3981)

* Actually use the model name prefix

* Update the petstore sample
This commit is contained in:
Ragnis Armus
2016-10-19 18:08:14 +03:00
committed by wing328
parent c7efb7000c
commit c73e499c5d
23 changed files with 354 additions and 354 deletions

View File

@@ -217,7 +217,7 @@ public class Qt5CPPGenerator extends DefaultCodegen implements CodegenConfig {
@Override
public String toModelFilename(String name) {
return PREFIX + initialCaps(name);
return modelNamePrefix + initialCaps(name);
}
@Override
@@ -332,7 +332,7 @@ public class Qt5CPPGenerator extends DefaultCodegen implements CodegenConfig {
languageSpecificPrimitives.contains(type)) {
return type;
} else {
return PREFIX + Character.toUpperCase(type.charAt(0)) + type.substring(1);
return modelNamePrefix + Character.toUpperCase(type.charAt(0)) + type.substring(1);
}
}