51 default: |
51 default: |
52 return {}; |
52 return {}; |
53 } |
53 } |
54 } |
54 } |
55 |
55 |
|
56 QVariant Model::getObjectProperty(const int index, const modelobjects::Property property) const |
|
57 { |
|
58 const modelobjects::BaseObject* object = this->body[index].get(); |
|
59 return object->getProperty(property); |
|
60 } |
|
61 |
56 void Model::append(ModelObjectPointer&& object) |
62 void Model::append(ModelObjectPointer&& object) |
57 { |
63 { |
58 this->body.push_back(std::move(object)); |
64 this->body.push_back(std::move(object)); |
59 } |
65 } |