src/modeleditcontext.cpp

changeset 135
d384df40c8e7
parent 133
e39326ee48dc
child 136
e8444e0d7f1a
equal deleted inserted replaced
134:f77d2230e87c 135:d384df40c8e7
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 {

mercurial