src/modeleditcontext.cpp

changeset 112
5760cbb32bc0
parent 89
7abaf1d64719
child 116
aad3e897bc32
equal deleted inserted replaced
111:1f42c03fafca 112:5760cbb32bc0
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 {

mercurial