--- a/src/model.cpp Sun Nov 03 13:18:55 2019 +0200 +++ b/src/model.cpp Sun Nov 03 17:57:21 2019 +0200 @@ -53,6 +53,12 @@ } } +QVariant Model::getObjectProperty(const int index, const modelobjects::Property property) const +{ + const modelobjects::BaseObject* object = this->body[index].get(); + return object->getProperty(property); +} + void Model::append(ModelObjectPointer&& object) { this->body.push_back(std::move(object));