Sun, 03 Nov 2019 13:07:04 +0200
fixed translations being updated twice at the same time, that's bad
3 | 1 | #include "modeleditcontext.h" |
2 | ||
3 | Model::EditContext::EditContext(Model& model) : | |
4 | model{model} | |
5 | { | |
6 | } | |
7 | ||
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
3
diff
changeset
|
8 | void Model::EditContext::append(std::unique_ptr<modelobjects::BaseObject>&& object) |
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( |
14 | modelobjects::BaseObject* object, | |
15 | modelobjects::Property property, | |
16 | const QVariant& value) | |
17 | { | |
18 | object->setProperty(property, value); | |
19 | } |