diff options
| author | Stijn Buys <ingar@osirion.org> | 2012-03-10 13:37:51 +0000 | 
|---|---|---|
| committer | Stijn Buys <ingar@osirion.org> | 2012-03-10 13:37:51 +0000 | 
| commit | 1f74e66bb12d9ed9655012301fe660203d0f660e (patch) | |
| tree | c9b1378118d87e41e5ce01121699e408ffb0f76d /src/entityproperties.cc | |
| parent | c5f45c9d2cef13974c08773cd0f788de12ee2ce4 (diff) | |
Added EntityProperties assignment operator.
Diffstat (limited to 'src/entityproperties.cc')
| -rw-r--r-- | src/entityproperties.cc | 18 | 
1 files changed, 18 insertions, 0 deletions
| diff --git a/src/entityproperties.cc b/src/entityproperties.cc index 88de704..4303b75 100644 --- a/src/entityproperties.cc +++ b/src/entityproperties.cc @@ -19,10 +19,28 @@ EntityProperties::EntityProperties() :  } +EntityProperties::EntityProperties(const EntityProperties &other) +{ +	assign(other); +	 +}  EntityProperties::~EntityProperties()  {  } +void EntityProperties::assign(const EntityProperties & other) +{ +	properties_radius = other.properties_radius; +	 +	properties_subsections = other.properties_subsections; +	properties_type = other.properties_type; +	 +	properties_angles = other.properties_angles; +	 +	properties_template_type = other.properties_template_type; +	properties_template_type = other.properties_template_type; +} +  void EntityProperties::add_subsection_header(const QString &header, const QString &comment)  {  	if (properties_subsections.size()) { | 
