src/modeleditcontext.cpp

changeset 8
44679e468ba9
parent 3
55a55a9ec2c2
child 13
6e838748867b
equal deleted inserted replaced
7:68443f5be176 8:44679e468ba9
1 #include "modeleditcontext.h" 1 #include "modeleditcontext.h"
2 2
3 Model::EditContext::EditContext(Model& model) : 3 Model::EditContext::EditContext(Model& model) :
4 model{model} 4 model{model}
5 { 5 {
6 }
7
8 void Model::EditContext::append(std::unique_ptr<modelobjects::BaseObject>&& object)
9 {
10 this->model.append(std::move(object));
6 } 11 }
7 12
8 void Model::EditContext::setObjectProperty( 13 void Model::EditContext::setObjectProperty(
9 modelobjects::BaseObject* object, 14 modelobjects::BaseObject* object,
10 modelobjects::Property property, 15 modelobjects::Property property,

mercurial