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 const QModelIndex index = this->model().lookup(id); |
33 emit this->model().dataChanged(index, index); |
33 Q_EMIT this->model().dataChanged(index, index); |
34 } |
34 } |
35 } |
35 } |
36 |
36 |
37 ldraw::id_t Model::EditContext::append(std::unique_ptr<ldraw::Object>&& object) |
37 ldraw::id_t Model::EditContext::append(std::unique_ptr<ldraw::Object>&& object) |
38 { |
38 { |