src/objecttypes/subfilereference.cpp

changeset 13
6e838748867b
parent 8
44679e468ba9
--- a/src/objecttypes/subfilereference.cpp	Sun Nov 03 17:57:21 2019 +0200
+++ b/src/objecttypes/subfilereference.cpp	Sun Nov 03 18:09:47 2019 +0200
@@ -1,18 +1,18 @@
 #include "subfilereference.h"
 
-modelobjects::SubfileReference::SubfileReference(
+linetypes::SubfileReference::SubfileReference(
 	const Vertex& position,
 	const Matrix3x3& transformation,
 	const QString& referenceName,
 	const Color color) :
-	ColoredBaseObject{color},
+	ColoredObject{color},
 	position{position},
 	transformation{transformation},
 	referenceName{referenceName}
 {
 }
 
-QVariant modelobjects::SubfileReference::getProperty(Property property) const
+QVariant linetypes::SubfileReference::getProperty(Property property) const
 {
 	switch (property)
 	{
@@ -23,11 +23,11 @@
 	case Property::ReferenceName:
 		return this->referenceName;
 	default:
-		return ColoredBaseObject::getProperty(property);
+		return ColoredObject::getProperty(property);
 	}
 }
 
-auto modelobjects::SubfileReference::setProperty(
+auto linetypes::SubfileReference::setProperty(
 	Property property,
 	const QVariant& value)
 	-> SetPropertyResult
@@ -44,11 +44,11 @@
 		this->referenceName = value.toString();
 		return SetPropertyResult::Success;
 	default:
-		return ColoredBaseObject::setProperty(property, value);
+		return ColoredObject::setProperty(property, value);
 	}
 }
 
-QString modelobjects::SubfileReference::textRepresentation() const
+QString linetypes::SubfileReference::textRepresentation() const
 {
 	return referenceName + " " + vertexToStringParens(this->position);
 }

mercurial