fixed readOnly in packParams
This commit is contained in:
parent
860fd13cdb
commit
516e825067
@ -447,8 +447,8 @@ QVariantMap JsonTypes::packParamType(const ParamType ¶mType)
|
|||||||
if (paramType.inputType() != Types::InputTypeNone) {
|
if (paramType.inputType() != Types::InputTypeNone) {
|
||||||
variantMap.insert("inputType", s_inputType.at(paramType.inputType()));
|
variantMap.insert("inputType", s_inputType.at(paramType.inputType()));
|
||||||
}
|
}
|
||||||
// only add if this param is NOT ediable
|
// only add if this param is NOT writable
|
||||||
if (!paramType.readOnly()) {
|
if (paramType.readOnly()) {
|
||||||
variantMap.insert("readOnly", paramType.readOnly());
|
variantMap.insert("readOnly", paramType.readOnly());
|
||||||
}
|
}
|
||||||
return variantMap;
|
return variantMap;
|
||||||
|
|||||||
Reference in New Issue
Block a user