src/model.cpp

changeset 12
fe67489523b5
parent 8
44679e468ba9
child 13
6e838748867b
--- 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));

mercurial