Wed, 01 Jan 2020 17:45:56 +0200
things
3 | 1 | #include "modeleditcontext.h" |
2 | ||
3 | Model::EditContext::EditContext(Model& model) : | |
4 | model{model} | |
5 | { | |
6 | } | |
7 | ||
13 | 8 | void Model::EditContext::append(std::unique_ptr<linetypes::Object>&& object) |
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
3
diff
changeset
|
9 | { |
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
3
diff
changeset
|
10 | this->model.append(std::move(object)); |
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
3
diff
changeset
|
11 | } |
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
3
diff
changeset
|
12 | |
3 | 13 | void Model::EditContext::setObjectProperty( |
13 | 14 | linetypes::Object* object, |
15 | linetypes::Property property, | |
3 | 16 | const QVariant& value) |
17 | { | |
18 | object->setProperty(property, value); | |
19 | } |