src/model.cpp

changeset 13
6e838748867b
parent 12
fe67489523b5
child 21
0133e565e072
--- a/src/model.cpp	Sun Nov 03 17:57:21 2019 +0200
+++ b/src/model.cpp	Sun Nov 03 18:09:47 2019 +0200
@@ -26,7 +26,7 @@
 QVariant Model::data(const QModelIndex& index, int role) const
 {
 	const int row = index.row();
-	modelobjects::BaseObject* object = this->body[row].get();
+	linetypes::Object* object = this->body[row].get();
 	switch(role)
 	{
 	case Qt::DisplayRole:
@@ -53,9 +53,9 @@
 	}
 }
 
-QVariant Model::getObjectProperty(const int index, const modelobjects::Property property) const
+QVariant Model::getObjectProperty(const int index, const linetypes::Property property) const
 {
-	const modelobjects::BaseObject* object = this->body[index].get();
+	const linetypes::Object* object = this->body[index].get();
 	return object->getProperty(property);
 }
 

mercurial