27 |
27 |
28 Model::EditContext::~EditContext() |
28 Model::EditContext::~EditContext() |
29 { |
29 { |
30 for (ldraw::id_t id : this->modifiedObjects) |
30 for (ldraw::id_t id : this->modifiedObjects) |
31 { |
31 { |
32 const QModelIndex index = this->model().lookup(id); |
32 this->model().objectModified(id); |
33 Q_EMIT this->model().dataChanged(index, index); |
|
34 } |
33 } |
35 } |
34 } |
36 |
35 |
37 ldraw::id_t Model::EditContext::append(std::unique_ptr<ldraw::Object>&& object) |
36 ldraw::id_t Model::EditContext::append(std::unique_ptr<ldraw::Object>&& object) |
38 { |
37 { |