}\r
\r
BlockParameterGeneric::BlockParameterGeneric(AbstractBlock* _owner, const QString &_name, const QString &_type, const QString &_value) : BlockParameter(_owner, _name, _type, _value) {\r
+ /* CAUTION: no check done on the type parameter !\r
+ * It must never be "expression" but something that is numeric/boolean\r
+ */\r
userValue = defaultValue;\r
}\r
\r
}\r
\r
if (!userValue.isNull()) {\r
- ret = formatValue.arg(name).arg(type).arg(userValue.toString());\r
+ ret = formatValue.arg(name).arg(getTypeString()).arg(userValue.toString());\r
}\r
else if (!defaultValue.isNull()) {\r
- ret = formatValue.arg(name).arg(type).arg(defaultValue.toString());\r
+ ret = formatValue.arg(name).arg(getTypeString()).arg(defaultValue.toString());\r
}\r
else {\r
- ret = formatNoValue.arg(name).arg(type);\r
+ ret = formatNoValue.arg(name).arg(getTypeString());\r
}\r
}\r
else if (context == BlockParameter::Architecture) {\r