X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/abbc64cf04a35ab3549d5c516f44c7c5921baa63..4327c2b8817b627249d98d889835726217c81a4e:/BlockParameterUser.cpp?ds=inline 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; }