src/model.cpp

changeset 12
fe67489523b5
parent 8
44679e468ba9
child 13
6e838748867b
equal deleted inserted replaced
11:771168ee2c76 12:fe67489523b5
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 }

mercurial