X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/abbc64cf04a35ab3549d5c516f44c7c5921baa63..2bdaa0aa3fab52f0808f60d9bbdabcd56d0efae9:/BlockParameterUser.cpp 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; }