X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/abbc64cf04a35ab3549d5c516f44c7c5921baa63..6e2b3026c6a496e81642c373796bd39dad33d2a6:/BlockParameterUser.cpp?ds=sidebyside diff --git a/BlockParameterUser.cpp b/BlockParameterUser.cpp index d0d870f..b6665fa 100644 --- a/BlockParameterUser.cpp +++ b/BlockParameterUser.cpp @@ -4,7 +4,7 @@ BlockParameterUser::BlockParameterUser() : BlockParameter() { userValue = defaultValue; } -BlockParameterUser::BlockParameterUser(AbstractBlock* _owner, const QString &_name, const QString &_value) : BlockParameter(_owner, _name, "string", _value) { +BlockParameterUser::BlockParameterUser(AbstractBlock* _owner, const QString &_name, const QString &_type, const QString &_value) : BlockParameter(_owner, _name, _type, _value) { userValue = defaultValue; } @@ -30,7 +30,7 @@ bool BlockParameterUser::isDefaultValue() { } BlockParameter* BlockParameterUser::clone() { - BlockParameter* block = new BlockParameterUser(owner,name,defaultValue.toString()); + BlockParameter* block = new BlockParameterUser(owner,name,getTypeString(), defaultValue.toString()); return block; }