diff -r 1f42c03fafca -r 5760cbb32bc0 src/model.cpp --- a/src/model.cpp Sun Jul 25 20:29:14 2021 +0300 +++ b/src/model.cpp Sun Jul 25 20:39:21 2021 +0300 @@ -121,9 +121,9 @@ void Model::append(ModelObjectPointer&& object) { const int position = static_cast(this->body.size()); - emit beginInsertRows({}, position, position); + Q_EMIT beginInsertRows({}, position, position); this->body.push_back(std::move(object)); - emit endInsertRows(); + Q_EMIT endInsertRows(); this->needRecache = true; } @@ -131,9 +131,9 @@ { if (position >= 0 and position < signed_cast(this->body.size())) { - emit beginRemoveRows({}, position, position); + Q_EMIT beginRemoveRows({}, position, position); this->body.erase(std::begin(this->body) + position); - emit endRemoveRows(); + Q_EMIT endRemoveRows(); this->needRecache = true; } }